HTML <menitem> ป้ายกำกับแอตทริบิวต์
ตัวอย่าง
ระบุป้ายกำกับสำหรับองค์ประกอบ <menuitem> ที่แตกต่างกัน:
<menu type="context" id="mymenu">
<menuitem label="Refresh"></menuitem>
<menuitem label="Twitter"></menuitem>
<menuitem label="Facebook"></menuitem>
</menu>
ความหมายและการใช้งาน
แอตทริบิวต์ label ที่จำเป็นจะระบุชื่อของคำสั่ง/รายการเมนู ตามที่แสดงให้ผู้ใช้เห็น
รองรับเบราว์เซอร์
ตัวเลขในตารางระบุเบราว์เซอร์รุ่นแรกที่สนับสนุนแอตทริบิวต์อย่างเต็มที่
Attribute | |||||
---|---|---|---|---|---|
label | Not supported | Not supported | 8.0 | Not supported | Not supported |
ไวยากรณ์
<menuitem label="text">
ค่าแอตทริบิวต์
Value | Description |
---|---|
text | Specifies the visible label of the menu item |
❮ แท็ก HTML <menuitem>