第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

為什么我測(cè)試出來的document.documentElement.offsetWidth;不包含滾動(dòng)條寬度

為什么我測(cè)試出來的document.documentElement.offsetWidth;不包含滾動(dòng)條寬度

慕姐8259394 2017-08-06 20:08:56
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">body{border:3px red solid;? ? padding:0;? ? margin:0;}</style></head><body><p>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><p>yyy</p><script type="text/javascript">var h=document.documentElement.offsetHeight;var w=document.documentElement.offsetWidth;document.write(h+"<br>");document.write(w+"<br>");document.write("<br>");var h2=document.documentElement.scrollHeight;var w2=document.documentElement.scrollWidth;document.write(h2+"<br>");document.write(w2+"<br>");document.write("<br>");var h1=window.innerHeight;var W1=window.innerWidth;var h1_1=document.documentElement.clientHeight;var W1_1=document.documentElement.clientWidth;var h1_2=document.body.clientHeight;var W1_2=document.body.clientWidth;document.write(h1+"&nbsp"+h1_1+"&nbsp"+h1_2+"<br>");document.write(W1+"&nbsp"+W1_1+"&nbsp"+W1_2+"<br>");document.write("<br>");</script></body></html>這是得到的結(jié)果1246130813002147605?588?13481325?1308?1302為什么我測(cè)試出來的document.documentElement.offsetWidth;的寬度減去了滾動(dòng)條寬度17px,不是說包含滾動(dòng)條寬度嗎?如果刪去了上面內(nèi)容是三個(gè)Y的所有p元素,這時(shí)document.documentElement.scrollHeight小于document.documentElement.clientHeight,但卻沒有返回一個(gè)值等于它document.documentElement.clientHeight。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1763 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)