HTML5 <select> 标签

定义和用法

<span> 标签用于对文档中的行内元素进行组合。

HTML 4.01 与 HTML5 之间的差异

没有。

提示和注释:

提示:请使用 span 元素对行内元素进行分组,以便通过样式对它们进行格式化。

例子

<p>This is a paragraph <span style="color:#00ff00;">This is a paragraph</span>
This is a paragraph</p>

属性

标准属性

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 © 2012-2015 BETWAY官网网 版权所有