Esempio
Un <iframe> con un margine destro e sinistro di 50 pixel:
<iframe src="demo_iframe.htm" marginwidth="50">
</iframe>
Prova tu stesso " Definizione e utilizzo
Il <iframe> marginwidth attributo non è supportato in HTML5. Utilizzare invece CSS.
Il marginwidth attributo specifica i margini destro e sinistro del contenuto di un <iframe> , in pixel.
Supporto per il browser
Attributo | |||||
---|---|---|---|---|---|
marginwidth | sì | sì | sì | sì | sì |
Il marginwidth attributo è deprecato, ma ancora supportata in tutti i principali browser.
Sintassi
<iframe marginwidth="pixels">
I valori degli attributi
Valore | Descrizione |
---|---|
pixels | Specifica i margini sinistro e destro del contenuto di un <iframe> |