Responsive Iframe Content

  • Hallo miteinander,

    folgendes Problem:

    Ein Kunde von mir (Immobilienmakler) möchte seinen Content, der bislang mittels Iframe eingebunden ist, nun in einem Responsive Layout entsprechend darstellen lassen. (Smartphone). Gibt es eine Möglichkeit, auch den Iframe Content mittels CSS anzupassen? Wenn ja, freue ich mich über eine kleine Anleitung für die 12.5er Version.

    Gruss Ronny

  • Wenn Du den Inhalt des IFrames unter Deiner Verwaltung hast, dann kannst Du diesen selbst via CSS anpassen.

    Was nicht funktioniert, ist dass Du von außerhalb des IFrames ein CSS einfügst:

    Zitat

    No, not from outside the iframe. An <iframe> is its own world. If the domains etc. match, then Javascript can communicate in and out, and could (if it wanted to) inject CSS into a child frame.

    If the <iframe> contains content from a different domain, there's pretty much nothing you can do. The parent page controls the size of the frame and whether it's visible, and can put its own content overthe frame by positioning etc, but it can't directly effect the way the actual frame content is rendered.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!