var myBody = document.body; // document.getElementsByTagName("body")[0]
console.log(myBody);
var myHtml = document.documentElement;
console.log(myHtml);
如何获取body和html元素、documentbody、documentElement
猜你喜欢
转载自blog.csdn.net/weixin_43131046/article/details/121564015
今日推荐
周排行