HTML Atribut šířky <iframe>

❮ HTML tag <iframe>

Příklad

<iframe> se zadanou výškou a šířkou 200 pixelů:

<iframe src="/default.asp" width="200" height="200"></iframe>

Definice a použití

Atribut widthurčuje šířku prvku iframe v pixelech.

Výchozí šířka je 300 pixelů.


Podpora prohlížeče

Attribute
width Yes Yes Yes Yes Yes

Syntax

<iframe width="pixels">

Hodnoty atributů

Value Description
pixels The width in pixels (like "100px" or just "100")

❮ HTML tag <iframe>