【问题标题】:I am not able to rotate the table based on condition我无法根据情况旋转桌子
【发布时间】:2013-03-02 17:08:12
【问题描述】:

我想将我的桌子旋转 180 度。我写了一个 CSS 来工作,但它不起作用。 这是代码

function rotateTable()
{
 table.className="tablecss";
}


<style type="text/css">
        .tablecss
        {       
         transform:rotate(180deg);
        }
</style>

【问题讨论】:

标签: javascript html css transform


【解决方案1】:

也添加以下内容:

-webkit-transform: rotate(180deg);
-o-transform: rotate(180deg);
-moz-transform: rotate(180deg);

你会得到this的输出。

【讨论】:

  • 在这种情况下,请也提供您的 HTML。
  • 我知道了...但是表格中的值也在旋转,我该怎么做才能使表格中的值不受影响
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-11-26
  • 2011-09-24
  • 1970-01-01
  • 2018-05-26
  • 2019-06-24
  • 1970-01-01
相关资源
最近更新 更多