Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IFrame Dynamische höhe

Empfohlene Antworten

Hi zusammen,

kennt einer von euch eine Möglichkeit mit der man einen IFrame die höhe von 50% geben kann?

Das problem ist das sobald ich eine % angabe mache der IFRAME auf 100%(gesamtgröße der seite nicht relativ zum rest der HTML seite)gezogen wird. Einzige mir bekannte möglichkeit währe JavaScript und die Größe ermitteln. Das fällt aber auf grund der Rahmenbedingungen flach.

Vielleicht klappts, wenn Du ein <div> um den <iframe> machst?


<html>

<head>

	<title>Untitled</title>

</head>


<body>

<div style="width:50%; height: 50%; border: 2px solid #000000">

	<iframe src="http://www.google.de" width="100%" height="100%"></iframe>

</div>



</body>

</html>


hm hört sich gut an thx. werd ich morgen auf der Arbeit mal testen

Hi nochmal leider hats nicht funktioniert.

Der IFrame zieht sich trotzdem die gesamte größe der Seite

hmmm. Welches Sytem und welchen Browser benutzt Du? Bei mir funktioniert das für IE 6 und Firefox genau richtig.

ah ok hatte wohl irgendwo nen Tipfehler.

THX

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.