HTML <รายละเอียด> เปิดแอตทริบิวต์
ตัวอย่าง
องค์ประกอบ <details> ที่เปิด/มองเห็นได้:
<details open>
<summary>Epcot Center</summary>
<p>Epcot is a
theme park at Walt Disney World Resort featuring exciting attractions,
international pavilions, award-winning fireworks and seasonal special
events.</p>
</details>
ความหมายและการใช้งาน
แอตทริบิวต์
open
นี้เป็นแอตทริบิวต์บูลีน
เมื่อมีอยู่ก็ระบุว่ารายละเอียดควรปรากฏแก่ผู้ใช้ (เปิด)
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
open | 12.0 | 79.0 | 49.0 | 6.0 | 15.0 |
ไวยากรณ์
<details open>
❮ HTML <รายละเอียด> แท็ก