Thuộc tính <link> kích thước HTML
Thí dụ
Biểu tượng với kích thước được chỉ định:
<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="16x16">
Định nghĩa và Cách sử dụng
Thuộc sizes
tính chỉ định kích thước của các biểu tượng cho phương tiện trực quan.
Thuộc tính này chỉ được sử dụng nếu rel="icon"
.
Hỗ trợ trình duyệt
Attribute | |||||
---|---|---|---|---|---|
sizes | Not supported | Not supported | Not supported | Not supported | Not supported |
Cú pháp
<link sizes="HeightxWidth|any">
Giá trị thuộc tính
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:
|
❮ Thẻ <link> HTML