[英]How to eliminate the white space when I rotate a table cell?
I'm trying to show in a table some cells rotated, but in this example the columns has a white space. 我试图在表格中显示一些旋转的单元格,但在此示例中,列具有空白。 I would like to remove it, but I haven't accomplished how to remove it.
我想删除它,但是我还没有完成如何删除它的操作。
Here is the example: 这是示例:
http://demos.davidjs.com/ST-RotateTableCellContent/ http://demos.davidjs.com/ST-RotateTableCellContent/
Your function adds a div with height: width, width: height
, however, since your table td inherits the widest cell's width, which in this case Dummy text
, applies to the rotated cell item8
to have height of the auto-cell-width of Dummy text
in horizontal. 您的函数添加了一个带有
height: width, width: height
的div,但是,因为表td继承了最宽单元格的宽度,在本例中为Dummy text
,它应用于旋转的单元格item8
,其auto-cell-width的高度为Dummy text
在水平。
You could just leave off the div as your table cell will already try to fit into it's content, or use display:table-cell
on your div
to do the same thing. 您可以离开div,因为您的表格单元格已经尝试适应它的内容,或者在
div
上使用display:table-cell
来执行相同的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.