iframe ohne ein src-Attribut. Ich möchte das div innerhalb iframe ohne src setzen, aber es scheint schwierig für mich. Mein HTML-Code istWie setze ich div innerhalb iframe ohne ein src Attribut?
<div class="demo-wrapper">
<iframe src="">
<div>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
<p>Hello World</p>
</div>
</iframe>
</div>
Mögliche Duplikat [innerhalb eines iframe ein div-Element einfügen] (http://stackoverflow.com/questions/29571365/inserting-a-div-element-inside-of- an-iframe) –
Mögliches Duplikat von [Inhalt in iFrame einfügen] (http://stackoverflow.com/questions/21795761/insert-content-into-iframe) – spoq
Warum möchten Sie das tun? Ein Iframe ist dazu gedacht, ein Stück einer anderen Website in Ihr eigenes einzufügen. Ein leerer (kein src) iframe ist nutzlos. –