?
This document uses PHP Chinese website manual Release
全局屬性itemref
屬性(不是具有該itemscope
屬性的元素的后代)可以使用一個與該項目相關(guān)聯(lián)itemref
。itemref
提供元素標(biāo)識符(不是itemid
)的列表,以及文檔中其他位置的其他屬性。
itemref
屬性只能在具有指定itemscope
屬性的元素上指定。
注意:itemref
屬性不是微數(shù)據(jù)數(shù)據(jù)模型的一部分。它僅僅是一種語法結(jié)構(gòu),可以幫助作者向注釋數(shù)據(jù)不遵循方便的樹結(jié)構(gòu)的頁面添加注釋。例如,它允許作者標(biāo)記表中的數(shù)據(jù),以便每個列都定義一個單獨的項目,同時保留單元格中的屬性。
<div itemscope id="amanda" itemref="a b"></div><p id="a">Name: <span itemprop="name">Amanda</span> </p><div id="b" itemprop="band" itemscope itemref="c"></div><div id="c"> <p>Band: <span itemprop="name">Jazz Band</span> </p> <p>Size: <span itemprop="size">12</span> players</p></div>
id's | itemscope | itemref | (itemprop name) | (itemprop value) | |
---|---|---|---|---|---|
id=amanda | itemscope | itemref=a,b | |||
id=a | itemprop | name | Amanda | ||
id=b | itemscope | itemref=c | band | ||
id=c | itemprop | Band | Jazz Band | ||
itemprop | Size | 12 |
規(guī)范 | 狀態(tài) | 評論 |
---|---|---|
itemref | WG注意事項 - 不再積極發(fā)展 |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |