Atrybut szerokości <iframe> HTML

❮ Tag HTML <iframe>

Przykład

<iframe> o określonej wysokości i szerokości 200 pikseli:

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

Definicja i użycie

widthAtrybut określa szerokość elementu iframe w pikselach .

Domyślna szerokość to 300 pikseli.


Obsługa przeglądarki

Attribute
width Yes Yes Yes Yes Yes

Składnia

<iframe width="pixels">

Wartości atrybutów

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

❮ Tag HTML <iframe>