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.

Empfohlene Antworten

Veröffentlicht

Ich hab ein Textfeld (eigentlich ein ASP:Label das in Html als <span> gerendert wird) welches eine feste Höhen- und Breitenangabe in Pixeln hat.

Der Textinhalt wird per Javascript bei einem bestimmten Ereignis verändert indem der innerHtml Eigenschaft des Spans der neue Wert zugewiesen wird.

Das Problem ist jetzt wenn der Text größer wird wie das Textfeld, dann schreibt der Browser das einfach aus dem Textfeld raus weiter nach unten.

Kann ich das irgendwie so einstellen das nur soviel Text dargestellt wird wie in den Bereich des spans mit seinen originallen Größenangaben passt?

Alles andere kann im Prinzip wegfallen...

PS: Ich hatte auch schon drüber nachgedacht statt des spans eine textarea zu verwenden aber die macht ja dann Scrollbalken an die Seite, was ich aber auch nicht will.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.