HTML 5 <rule> 標簽
定義和用法
<rule> 標簽定義更新數(shù)據(jù)模板的規(guī)則。與 <datatemplate> 和 <nest> 元素一起使用。
HTML 4.01 與 HTML 5 之間的差異
<rule> 標簽是 HTML 5 中的新標簽。
屬性
屬性 | 值 | 描述 |
---|---|---|
condition | selector | 定義將更新哪個元素。 |
mode | mode | 定義數(shù)據(jù)模板擁有的模式。 |
標準屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪問 HTML 5 中標準屬性。
事件屬性
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
如需完整的描述,請訪問 HTML 5 中事件屬性。