H I O X INDIA
Kostenlose HTML - Tutorial
 HOME  ||  HTML ||  Javascript ||  CSS ||  SEO ||  MySQL  english  Français  中文  Español

HTML Grundlagen
Einleitung
Wie Zu
Tags Liste
html, head, body
Text Manipulation
Bilder
Special Effects
Verwertung Tabellen
Forms
Weitere Themen
Subscript & Superscript
Phrase tag
Bullet Stile
Feedback

Tabelle Hintergrundfarbe und Bild


Inhalt

Wie kann ich die Hintergrundfarbe für eine Tabelle einstellen?
Hintergrundbild für eine Tabelle einstellen?



Erklärung

Tabelle mit Farbe
Wir können eine Hintergrundfarbe zu der Tabelle beifügen mit dem Attribut "bgcolor".
Diese Attribut kann in das "table"/"tr"/"td" Tag hinzugefügt werden. Die Farbe kann für die ganze Tabelle oder für Zeilen und Spalten eingestellt werden

Beispiel Code:
<table border=1 bgcolor="green">
<tr>
<td>
This is first column
</td>
<td bgcolor="yellow">
This is second column
</td>
</tr>
</table>


Ergebnis:
Das Ergebnis für dieses Tag ist:
This is first column This is second column


Tabelle mit Hintergrundbild
Jetzt werden wir versuchen, eine Tabelle zu erstellen, die eine Hintergrundfarbe hat

Beispiel Code:
<table border=1 bgcolor=green>
<tr>
<td>
This is 1st row 1st column
</td>
<td>
This is 1st row 2nd column
</td>
</tr>
<tr>
<td>
This is 2nd row 1st column
</td>
<td background="./test.jpg">
This is 2nd row 2nd column <br><br> Nice background
</td>
</tr>
</table>


Ergebnis:
Das Ergebnis für dieses Tag ist
This is 1st row 1st column This is 1st row 2nd column
This is 2nd row 1st column This is 2nd row 2nd column

Nice background




privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Weitere Links