var body=document.body;
var p=document.createElement("p");
p.className="p1";
var text=document.createTextNode("I love JS");
body.appendChild(p)
p.appendChild(text)
var p=document.createElement("p");
p.className="p1";
var text=document.createTextNode("I love JS");
body.appendChild(p)
p.appendChild(text)
2015-03-12
已采纳回答 / 小于飞飞
感谢,请多多关注课程
所以是offsetHeight(+滚动+边框)>scrollHeight(+滚动)>clientHeight吗
我感觉用document.body的一系列height都无法理解啊为什么那么小
我感觉用document.body的一系列height都无法理解啊为什么那么小
2015-03-12