div scrollWidth和scrollHeight
body{
border: 20px solid #ccc;
margin: 10px;
padding: 40px;
background:#eee;
height:350px;
width:500px;
overflow:scroll;
}
#mdiv{ width:400px; height: 200px; padding: 20px; margin: 10px; background: #f60; border: 20px solid #888; overflow: scroll; } var mdiv=document.getElementById('mdiv'); alert("scrollWidth:"+mdiv.scrollWidth+" scrollHeight:"+mdiv.scrollHeight); 怎么输出的和老师的结果不一样,能解答下不一样,老师的是440,240,我的是423,223