我不能根据情况旋转桌子

I am not able to rotate the table based on condition

本文关键字:旋转 情况 不能      更新时间:2023-09-26

我想把表旋转180度。我写了一个CSS工作,但它不工作。下面是代码

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

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

再添加以下内容:

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

你会得到这样的输出