旋转表格单元格中的文本 [英] Rotate text in table cell

查看:84
本文介绍了旋转表格单元格中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在表格的行标题中显示垂直文字。

我写了以下代码

 lbHeader.Style .Add(  writing-mode  tb-rl); 
lbHeader.Style.Add( filter flipv fliph);



它正在使用IE9,但不适用于IE10。



我试过-ms-transform:rotate(270deg)

和原始属性但它给出对齐问题。



请建议适用于所有IE版本的内容

此文本的对齐方式将为中心。

解决方案

查看此链接。



垂直旋转html表格标题单元格内的文本 [ ^ ]


请查看以下一个



http:// css- tricks.com/rotated-table-column-headers/ [ ^ ]

I want to show the vertical text in the row header of my table.
I have written following code

lbHeader.Style.Add("writing-mode", "tb-rl");
lbHeader.Style.Add("filter", "flipv fliph");


It's working on IE9 but not in IE10.

I tried –ms-transform : rotate(270deg)
And origin property but it is giving alignment issue.

Please suggest something which will work on all versions of IE
And alignment of this text will be center.

解决方案

Check this link.

Vertically rotate text inside an html table header cell[^]


Please have a look into the below one

http://css-tricks.com/rotated-table-column-headers/[^]


这篇关于旋转表格单元格中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆