HTML5中对body是怎样介绍的-创新互联

HTML5中对body是怎样介绍的,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。

创新互联公司服务项目包括乌拉特前网站建设、乌拉特前网站制作、乌拉特前网页制作以及乌拉特前网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,乌拉特前网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到乌拉特前省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

body元素就是就是html文档的主内容标签。
可设置属性
onafterprint 在打印文档之后运行脚本
onbeforeprint 在文档打印之前运行脚本
onbeforeonload 在文档加载之前运行脚本
onblur 当窗口失去焦点时运行脚本
onerror 当错误发生时运行脚本
onfocus 当窗口获得焦点时运行脚本
onhaschange 当文档改变时运行脚本
onload 当文档加载时运行脚本
onmessage 当触发消息时运行脚本
onoffline 当文档离线时运行脚本
ononline 当文档上线时运行脚本
onpagehide 当窗口隐藏时运行脚本
onpageshow 当窗口可见时运行脚本
onpopstate 当窗口历史记录改变时运行脚本
onredo 当文档执行再执行操作(redo)时运行脚本
onresize 当调整窗口大小时运行脚本
onstorage 当文档加载加载时运行脚本
onundo 当文档执行撤销操作时运行脚本
onunload 当用户离开文档时运行脚本
DOM 接口
代码: 全选 运行


interface HTMLBodyElement : HTMLElement { 
attribute Function onafterprint; 
attribute Function onbeforeprint; 
attribute Function onbeforeunload; 
attribute Function onblur; 
attribute Function onerror; 
attribute Function onfocus; 
attribute Function onhashchange; 
attribute Function onload; 
attribute Function onmessage; 
attribute Function onoffline; 
attribute Function ononline; 
attribute Function onpopstate; 
attribute Function onpagehide; 
attribute Function onpageshow; 
attribute Function onredo; 
attribute Function onresize; 
attribute Function onscroll; 
attribute Function onstorage; 
attribute Function onundo; 
attribute Function onunload; 
};

看完上述内容,你们掌握HTML5中对body是怎样介绍的的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注创新互联行业资讯频道,感谢各位的阅读!


分享题目:HTML5中对body是怎样介绍的-创新互联
链接地址:http://myzitong.com/article/dcisij.html