Atribut lebar <iframe> HTML
Contoh
Sebuah <iframe> dengan tinggi dan lebar 200 piksel yang ditentukan:
<iframe src="/default.asp" width="200" height="200"></iframe>
Definisi dan Penggunaan
Atribut width
menentukan lebar iframe, dalam piksel.
Lebar default adalah 300 piksel.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
width | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<iframe width="pixels">
Nilai Atribut
Value | Description |
---|---|
pixels | The width in pixels (like "100px" or just "100") |
tag HTML <iframe>