HTML <link> ขนาดแอตทริบิวต์
ตัวอย่าง
ไอคอนที่มีขนาดที่กำหนด:
<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">
ความหมายและการใช้งาน
แอตทริบิวต์sizes
ระบุขนาดของไอคอนสำหรับสื่อภาพ
คุณลักษณะนี้จะใช้เฉพาะrel="icon"
เมื่อ
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
sizes | Not supported | Not supported | Not supported | Not supported | Not supported |
ไวยากรณ์
<link sizes="HeightxWidth|any">
ค่าแอตทริบิวต์
Value | Description |
---|---|
HeightxWidth | Specifies one or more sizes for the linked icon. The height and width values are separated by an "x" or "X". Examples:
|
any | Specifies that the icon is scalable (like an SVG image) Examples:
|
❮ แท็ก HTML <link>