?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
HTML <summary>
元素 用作 一個<details>
元素的一個內(nèi)容的摘要,標(biāo)題或圖例。
允許的內(nèi)容 | Phrasing content 或 Heading content 的一個元素 |
---|---|
標(biāo)記遺漏 | 無,起始標(biāo)簽和結(jié)束標(biāo)簽都是強(qiáng)制性的。 |
允許的父母 | <details>元素。 |
允許ARIA角色 | button |
DOM接口 | HTMLElement |
本元素僅支持全局屬性。
如果該<summary>
元素被省略,則將使用 heading 的 "details"。
默認(rèn)樣式<summary>
是display:list-item
根據(jù)HTML標(biāo)準(zhǔn)。如果display:block
風(fēng)格改變,披露的三角形( disclosure triangle)將被忽略,這是可預(yù)見的。
綜上所述,從下一行的鏈接中獲取詳細(xì)信息
請參閱<summary>上的示例頁面<details>。
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<summary>' in that specification. | Living Standard | |
HTML 5.1The definition of '<summary>' in that specification. | Recommendation | Initial definition |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Edge | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 12 | 49.0 (49.0) | No support | Under Development | No support | 6 |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 4.0 | 49.0 (49.0) | No support | No support | No support |