HTML5 对各个标签的定义与规定:body的介绍


Posted in HTML / CSS onJune 21, 2012

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;
};

HTML / CSS 相关文章推荐
纯css3实现效果超级炫的checkbox复选框和radio单选框
Sep 01 HTML / CSS
IE浏览器单独写CSS样式的几种方法
Oct 14 HTML / CSS
CSS3的常见transformation图形变化用法小结
May 13 HTML / CSS
Html5中的桌面通知Notification的实现
Sep 25 HTML / CSS
利用html5 canvas动态画饼状图的示例代码
Apr 02 HTML / CSS
html5教程实现Photoshop渐变色效果
Dec 04 HTML / CSS
html5的websockets全双工通信详解学习示例
Feb 26 HTML / CSS
HTML5 拖放功能实现代码
Jul 14 HTML / CSS
Html5 web本地存储实例详解
Jul 28 HTML / CSS
使用Html5实现异步上传文件,支持跨域,带有上传进度条
Sep 17 HTML / CSS
移动HTML5前端框架—MUI的使用
Dec 18 HTML / CSS
Canvas制作的下雨动画的示例
Mar 06 HTML / CSS
网易微博Web App用HTML5开发的过程介绍
Jun 13 #HTML / CSS
只要五步 就可以用HTML5/CSS3快速制作便签贴特效(图)
Jun 04 #HTML / CSS
关于HTML5你必须知道的28个新特性,新技巧以及新技术
May 28 #HTML / CSS
HTML5的标签的代码的简单介绍 HTML5标签的简介
May 28 #HTML / CSS
html5 兼容IE6结构的实现代码
May 14 #HTML / CSS
html5 Canvas绘制线条 closePath()实例代码
May 10 #HTML / CSS
关于 HTML5 的七个传说小结
Apr 12 #HTML / CSS
You might like
人尽可用的Windows技巧小贴士之下篇
2007/03/22 PHP
探讨php中防止SQL注入最好的方法是什么
2013/06/10 PHP
Ajax+PHP快速上手及简单应用说明
2013/07/24 PHP
使用pthreads实现真正的PHP多线程(需PHP5.3以上版本)
2014/05/05 PHP
php使用PDO操作MySQL数据库实例
2014/12/30 PHP
PHP判断一个字符串是否是回文字符串的方法
2015/03/23 PHP
CI框架常用方法小结
2016/05/17 PHP
JavaScript 学习笔记(七)字符串的连接
2009/12/31 Javascript
jQuery图片切换插件jquery.cycle.js使用示例
2014/06/16 Javascript
Css3制作变形与动画效果
2015/07/24 Javascript
Javascript自执行匿名函数(function() { })()的原理浅析
2016/05/15 Javascript
Vuejs第九篇之组件作用域及props数据传递实例详解
2016/09/05 Javascript
使用UrlConnection实现后台模拟http请求的简单实例
2017/01/04 Javascript
微信小程序 详解Page中data数据操作和函数调用
2017/01/12 Javascript
微信小程序 常用工具类详解及实例
2017/02/15 Javascript
vue.js实现用户评论、登录、注册、及修改信息功能
2020/05/30 Javascript
Rollup处理并打包JS文件项目实例代码
2018/05/31 Javascript
Angular Material Icon使用详解
2018/11/07 Javascript
详解VUE单页应用骨架屏方案
2019/01/17 Javascript
vxe-table vue table 表格组件功能
2019/05/26 Javascript
利用不到200行代码写一款属于你自己的js类库
2019/07/08 Javascript
js实现简易计算器功能
2019/10/18 Javascript
vue输入节流,避免实时请求接口的实例代码
2019/10/30 Javascript
JS eval代码快速解密实例解析
2020/04/23 Javascript
Python字符串匹配算法KMP实例
2015/07/18 Python
Python多继承原理与用法示例
2018/08/23 Python
对Python2与Python3中__bool__方法的差异详解
2018/11/01 Python
使用批处理脚本自动生成并上传NuGet包(操作方法)
2019/11/19 Python
python双向链表原理与实现方法详解
2019/12/03 Python
用Python进行websocket接口测试
2020/10/16 Python
国外平面设计第一市场:99designs
2016/10/25 全球购物
英国门销售网站:Green Tree Doors
2020/01/07 全球购物
公务员转正考察材料
2014/02/07 职场文书
英语一分钟演讲稿
2014/04/29 职场文书
大学生考试作弊检讨书1000字
2014/10/14 职场文书
详解MySQL中的主键与事务
2021/05/27 MySQL