【问题标题】:How to rotate a column text in a table in HTML如何在 HTML 中旋转表格中的列文本
【发布时间】:2013-01-27 06:10:32
【问题描述】:

我已经厌倦了尝试在 html 中旋转表格中的列文本。

这就是我所拥有的,它只适用于 chrome 和 Firefox,但不适用于 IE9。 http://contoso2.azurewebsites.net/scores/listscores

我看到了这些关于垂直文本的例子。我使用的是 IE9,它看起来不错,我猜他们使用的是画布之类的东西,我真的不确定。

http://jsfiddle.net/R4JvP/11/ http://www.ok-soft-gmbh.com/jqGrid/CheckboxesWithVerticalHeaders1.htm

第二个链接是我感兴趣的显示rotation: (-90)deg 中的所有标题列如何在所有浏览器中实现这一点?

【问题讨论】:

标签: javascript jquery html jquery-ui css


【解决方案1】:

你可以使用-ms-transform: rotate(-45deg);

【讨论】:

    【解决方案2】:
    -moz-transform: rotate Firefox 4+
    -webkit-transform: rotate Safari 5+, Chrome 10+
    -ms-transform: rotate Internet Exlorer 9+
    transform: rotate
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-08
      • 2011-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-17
      • 2012-04-19
      • 2011-10-27
      相关资源
      最近更新 更多