87,899
社区成员
发帖
与我相关
我的任务
分享
<div id="demo" style="background-color:#900;"></div>
<script type="text/javascript">
var demo = document.getElementById('demo');
demo.style.width = '200px';
demo.style.height = '200px';
</script>
$("div1").css("height","320px");
$("div1").css("width","480px");
var node=document.getElementById("xx");
node.style.cssText+="width:320px;height:480px;";