自丢网

标题: jQuery设置样式 [打印本页]

作者: admin    时间: 2020-3-5 15:44
标题: jQuery设置样式
jquery语法:
  1. $('div").css('属性', '值')
复制代码
案例代码:
  1.     <script>
  2.         $(function() {
  3.             $('div').css('backgroundColor', 'red');
  4.         });
  5.     </script>
复制代码






欢迎光临 自丢网 (https://www.zidiu.com/) Powered by Discuz! X3.5