tutorials.de Buch-Aktion 05/2012
ERLEDIGT
JA
ANTWORTEN
4
ZUGRIFFE
333
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    exhubiranta exhubiranta ist offline Mitglied Silber
    Registriert seit
    Mar 2006
    Beiträge
    93
    Hallo,

    dieses Script, das ich mir hergesucht habe, funktioniert im Firefox nicht. Es ist auch doof, dass die Schrift so nah am Scrollbalken hängt. Ein bisschen Luft wäre besser. Wie kann ich das einstellen und dass es überhaupt überall läuft?
    Wisst ihr weiter?
    Greetings
    exi

    HTML-Code:
    <table><tr><td style="background-color: #FFFCF4;vertical-align: text-top;"
               scroll="auto" width="466" height="468">
    <div style="width:100%; height:100%; align:center; valign:top;
                background-color:transparent; overflow: auto;">
    					Hallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvvvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextvvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvvvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvvHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextvHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist TextHallo hier ist Text Hallo hier ist Text</div>
    
    </td>
    </tr>
    </table>
     

  2. #2
    Maik Tutorials.de Gastzugang
    Hi,

    bei dem gezeigten Quellcode handelt es sich nicht um ein Script, sondern um die Auszeichnungssprache HTML und Formatierungssprache CSS.

    Bei mir funktioniert der Quellcode im Firefox, wie auch in den übrigen Browsern, einwandfrei. Nur scrollt die Tabellenzelle nicht automatisch, denn der scroll-Attributswert auto besagt lediglich, dass der Scrollbalken erst dann angezeigt werden soll, wenn der Inhalt die vorgegebene Elementgröße überschreitet. Das scrolling-Attribut findet seinen Einsatz aber normalerweise bei Frames.

    Einen Abstand zum Scrollbalken könntest du folgendermaßen einrichten:

    Code :
    1
    2
    3
    4
    5
    
    <div style="width:100%; height:100%; align:center; valign:top;background-color:transparent; overflow: auto;">
    [B]<div style="padding-right:20px;">[/B]
       <!-- Hier folgt der Inhalt -->
    [B]</div>[/B]
    </div>
     

  3. #3
    exhubiranta exhubiranta ist offline Mitglied Silber
    Registriert seit
    Mar 2006
    Beiträge
    93
    Habs selber gelöst

    HTML-Code:
    <div style="overflow: auto; width: 100px; height: 100px; ">
       
    Da ist Text Da ist Text ect.
    
    </div>
    Einfach eine Tabelle einfügen mit zwei Spalten einfügen. Rechts Abstand, links Inhalt. Dann klatschts nimmer am Srollbalken.
     

  4. #4
    exhubiranta exhubiranta ist offline Mitglied Silber
    Registriert seit
    Mar 2006
    Beiträge
    93
    Danke für die Mühe, ich hab gedacht, so schnell antwortet keiner! Padding-right klappt im Firefox nicht, da verschiebts alles nach rechts. So, wie ich's jetzt habe, klappts in allen Browsern.
     

  5. #5
    Maik Tutorials.de Gastzugang
    Mit meinem Vorschlag verschiebt sich bei mir im Firefox nichts nach rechts. Ansonsten würde ich es hier auch nicht empfehlen.
     

Ähnliche Themen

  1. Tabelle automatisch ausfüllen
    Von sbambas im Forum Office-Anwendungen
    Antworten: 1
    Letzter Beitrag: 29.03.10, 13:47
  2. Antworten: 11
    Letzter Beitrag: 26.06.08, 19:49
  3. Tabelle automatisch Sortieren
    Von zero-one-two-three im Forum Office-Anwendungen
    Antworten: 0
    Letzter Beitrag: 19.05.08, 13:56
  4. Mit automatisch Tabelle erstellen
    Von robertino im Forum PHP
    Antworten: 4
    Letzter Beitrag: 04.12.05, 16:38
  5. scrollende Exceltabelle
    Von mcphilli im Forum Microsoft Windows
    Antworten: 1
    Letzter Beitrag: 22.02.03, 03:07