20170725 用Jquery修改CSS

<script src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(function(){
//一个属性
/* $("div").css('background-color','red');*/

//多个属性
$("div").css({'background-color':'red','height':'100px',"width":"50px"});
})
</script>


<div>
div中的内容
</div>


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-05
  • 2021-12-20
  • 2021-12-30
  • 2021-04-06
  • 2021-12-30
  • 2021-12-30
  • 2021-12-30
相关资源
相似解决方案