关于Body对象的相关常识,不求熟记,但要求会记
工具/原料
随意的文本编辑器即可
方法/步骤
1
属性: background bgProperties text bottomMargin leftMargin rightMargin 通用属性: id name className innerText innerHtml outerText offsetTop offsetLeft offsetWidth offsetHeight clientTop clientLeft clientWidth clientHeight scroll scrollTop scrollLeft scrollWidth scrollHeight
2
例子1:鼠标在标签上时与不在标签上面时显示的结果
innerText与innerHtml区别'' onmouseout='this.innerHtml='innerText与innerHtml区别'' /> innerText与innerHtml区别
3
例子2:
abc
4
事件: onselectstart/onscroll
5
对象属性: all数组与style对象 隐藏/显示html标签的例子:
- list- item1
- item2
- item3
注意事项
对于初学者来说可能会很有帮助
上一篇:小学生孝亲敬长礼仪必须做到
下一篇:女朋友痛经,你该做些什么?