<div id="box"></div>
<script>
  var box = document.getElementById("box");
  box.style.width = '100px';
  box.style.height = '100px';
  box.style.backgroundColor = "#f00";
  box.style.cssText = 'width: 200px; height: 200px; border: 1px solid #f00;';
</script>    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-07-04
  • 2021-08-26
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案