ERLEDIGT
JA
JA
ANTWORTEN
4
4
ZUGRIFFE
333
333
EMPFEHLEN
-
20.02.08 16:55 #1
- 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>
-
20.02.08 17:01 #2Maik 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>
-
20.02.08 17:17 #3
- Registriert seit
- Mar 2006
- Beiträge
- 93
Habs selber gelöst
Einfach eine Tabelle einfügen mit zwei Spalten einfügen. Rechts Abstand, links Inhalt. Dann klatschts nimmer am Srollbalken.HTML-Code:<div style="overflow: auto; width: 100px; height: 100px; "> Da ist Text Da ist Text ect. </div>
-
20.02.08 17:25 #4
- 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.
-
20.02.08 17:27 #5Maik 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
-
Tabelle automatisch ausfüllen
Von sbambas im Forum Office-AnwendungenAntworten: 1Letzter Beitrag: 29.03.10, 13:47 -
Automatisch Tabelle mit dem namen einer Spalte einer anderen Tabelle erstellen
Von Chris-P im Forum PHPAntworten: 11Letzter Beitrag: 26.06.08, 19:49 -
Tabelle automatisch Sortieren
Von zero-one-two-three im Forum Office-AnwendungenAntworten: 0Letzter Beitrag: 19.05.08, 13:56 -
Mit automatisch Tabelle erstellen
Von robertino im Forum PHPAntworten: 4Letzter Beitrag: 04.12.05, 16:38 -
scrollende Exceltabelle
Von mcphilli im Forum Microsoft WindowsAntworten: 1Letzter Beitrag: 22.02.03, 03:07





Login





