<style type="text/css">
#div1{width:100px;height:100px;}

#div2{background}
</style>
<div )
div2.onmouseover = function(){//鼠标移到div2时设置宽度
    this.style.width = wid;
};
</script>

相关文章: