您现在的位置是:网站首页> 编程资料编程资料
HTML5 对各个标签的定义与规定:body的介绍html5实现点击弹出图片功能html5 录制mp3音频支持采样率和比特率设置html5表单的required属性使用html5调用摄像头实例代码HTML5页面音频自动播放的实现方式Html5大屏数据可视化开发的实现html实现弹窗的实例HTML5来实现本地文件读取和写入的实现方法HTML 罗盘式时钟的实现HTML5简单实现添加背景音乐的几种方法
2023-10-15
476人已围观
简介 本文主要介绍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;
};
可设置属性
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;
};
相关内容
- 网易微博Web App用HTML5开发的过程介绍html5实现的类似于手机天气预报app显示效果代码HTML5实现的仿Apple Watch时钟动画特效源码afHtml5Application.dllhtml5 application cache遇到的严重问题HTML5使用ApplicationCache接口实现离线缓存技术解决离线难题百度:用HTML5新特性开发移动App 蒋宇捷 PDF清晰版不可轻视HTML5!App三年内将被html5顶替彻底消失
- 只要五步 就可以用HTML5/CSS3快速制作便签贴特效(图)html5实现点击弹出图片功能html5 录制mp3音频支持采样率和比特率设置html5表单的required属性使用html5调用摄像头实例代码HTML5页面音频自动播放的实现方式Html5大屏数据可视化开发的实现html实现弹窗的实例HTML5来实现本地文件读取和写入的实现方法HTML 罗盘式时钟的实现HTML5简单实现添加背景音乐的几种方法
- 关于HTML5你必须知道的28个新特性,新技巧以及新技术基于HTML5新特性Mutation Observer实现编辑器的撤销和回退操作HTML5 history新特性pushState、replaceState及两者的区别 HTML5有哪些新特征Html5新特性用canvas标签画多条直线附效果截图html5声频audio和视频video等新特性详细说明百度:用HTML5新特性开发移动App 蒋宇捷 PDF清晰版HTML5中语义化 b 和 i 标签HTML5新特性之语义化标签
- HTML5的标签的代码的简单介绍 HTML5标签的简介浅谈HTML5 FileReader分布读取文件以及其方法简介HTML与XHTML、以及HTML4与HTML5标签之间的区别简介HTML5的一个显示电池状态的API简介HTML5是什么 HTML5是什么意思 HTML5简介HTML5安全介绍之内容安全策略(CSP)简介html5新增的定时器requestAnimationFrame实现进度条功能HTML5新增加的功能详解iPhone5和iOS6上HTML5开发的新增功能html5简介及新增功能介绍
- html5 兼容IE6结构的实现代码html5实现点击弹出图片功能html5 录制mp3音频支持采样率和比特率设置html5表单的required属性使用html5调用摄像头实例代码HTML5页面音频自动播放的实现方式Html5大屏数据可视化开发的实现html实现弹窗的实例HTML5来实现本地文件读取和写入的实现方法HTML 罗盘式时钟的实现HTML5简单实现添加背景音乐的几种方法
- 全民英雄扫荡战场紫卡攻略心得 扫荡战场能不能获得紫卡_手机游戏_游戏攻略_
- 全民英雄萨尔出装攻略心得 全民英雄萨尔怎么搭配装备_手机游戏_游戏攻略_
- 全民英雄凤凰定位与培养价值全面解析_手机游戏_游戏攻略_
- 爸爸去哪儿 第18关 图文攻略_手机游戏_游戏攻略_
- 爸爸去哪儿 第19关 图文攻略_手机游戏_游戏攻略_
