且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHP和jQuery更改CSS样式

更新时间:2023-10-30 23:39:34

回显样式元素的HTML,并在其中引用CSS。

You can echo the HTML for a style element and throw the CSS inside that.

else {
    echo '<style type="text/css">
        #id-element {
            display: none;
        }
        </style>';
}