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.

Bild anzeigen in genauer Prozentgröße?

Empfohlene Antworten

Veröffentlicht

Hallo Leute!

Habe ne kurze Frage zu HTML:

WIe kann man ein Bild in einer gewissen Größe anzeigen lassen?

Also nicht die Pixelangabe sondern Prozentangabe, in Pixel würde das so aussehen:

<img src="http://www.abc.de/xyz.jpg" border="0" style="width:508px; height:400px;">

Wie siehts aus mit Prozent?

Wäre super wenns schnell klappen würde!

Danke

Frichdel

<img src="http://www.abc.de/xyz.jpg" border="0" style="width:50%; height:40%;">

GEHT NICHT.

Wenn ich dich richtig verstanden habe, dann willst dass dein bild auf x% der Größe reduziert wird. Wie gesagt, das geht nicht.

Alle relativen Größenangaben beziehen sich auf übergeordnete Objekte. Je nach Browser, das direkte Elternelement oder eben body.

Nee nicht pro Seitenlänge die Prozent sondern vom gesamten Bild.

Gibts da auch ein Befehl?

Frichdel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.