I would like to use rowspan(html's attribute) in <style>
, like:
我想在
<style>
table td{
rowspan: 2;
}
</style>
Is there anyway to do that, or anything to solve that ? Thank for any suggestions !
无论如何要做到这一点,还是要解决这个问题?感谢任何建议!
1 个解决方案
#1
15
rowspan
is an an attribute on the td
tag, it is not a CSS property. See the specification: http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6
rowspan是td标记上的一个属性,它不是CSS属性。参见规范:http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6
You will not be able to set the rowspan
attribute via CSS, this would be similar to attempting to set the href
of an a
tag via CSS.
您将无法通过CSS设置rowspan属性,这类似于尝试通过CSS设置标签的href。
#1
15
rowspan
is an an attribute on the td
tag, it is not a CSS property. See the specification: http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6
rowspan是td标记上的一个属性,它不是CSS属性。参见规范:http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6
You will not be able to set the rowspan
attribute via CSS, this would be similar to attempting to set the href
of an a
tag via CSS.
您将无法通过CSS设置rowspan属性,这类似于尝试通过CSS设置标签的href。