HTML5<embed>标签 - HTML5中文手册 - HTML5中文网
HTML5中文手册
HTML5 <embed> 标签
定义和用法
<embed> 标签定义嵌入的内容,比如插件。
HTML 4.01 与 HTML5 之间的差异
<embed> 标签是 HTML5 中的新标签。
提示和注释
注释:<embed> 标签必须有 src 属性。
提示:您无法在开始标签和结束标签之间写文本,来说明旧式的浏览器不支持该标签,就像 <audio>
和 <video>。
例子
<embed src="horse.wav" />
属性
属性 | 值 | 描述 |
---|---|---|
height | pixels | 设置嵌入内容的高度。 |
src | url | 嵌入内容的 URL。 |
type | type | 定义嵌入内容的类型。 |
width | pixels | 设置嵌入内容的宽度。 |
标准属性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant,
lang, ref, registrationmark, tabindex, template, title
如需完整的描述,请访 HTML5 中标准属性。
事件属性
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover,
ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup,
onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout,
onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
如需完整的描述,请访 HTML5
中事件属性。
Copyright © 2009-2011 HTML5中文网 版权所有
一键复制
编辑
Web IDE
原始数据
按行查看
历史