问个xhtml的问题???

如何在xhtml中实现如下语句:
- Tabellenspalten haben einen Innenabstand von 5 Pixel.
- Die zweite Tabellenspalte ist um 10 Pixel nach rechts

谢谢啦!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Be happy!</title>
</head>
<body>

<h1>5pix cellspacing, 10pix miteinander</h1>

<table border="1" cellspacing="5">
  <tr>
    <th width="200", align="left">Spalte 1</th>
    <th width="0", style="border:0"></th>         <!-- leere Spalte -->
    <th width="200", align="left">Spalte 2</th>  
  </tr>
</table>

</body>
</html>
1

评分人数

TOP

TOP

in   xx.html

<table cellpadding="5">

-------------------------------------------------


/* Dies ist die CSS-Stilvorlage */
/*Die zweite Tabellenspalte ist um 10 Pixel nach rechts eingerückt*/
.Fuellunglinks {padding-left: 10px;}

und in xx.html

<td class="Fuellunglinks">etwas</td>

[ 本帖最后由 Pizzaboy 于 2007-11-21 02:43 编辑 ]
1

评分人数

TOP

padding-left

Using CSS is a better choice!!!

or

__________________________________________________________________

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Be happy!</title>
</head>
<body>

<h1>5pix cellspacing, 10pix miteinander</h1>

<table border="1" cellspacing="5">
  <tr>
    <th width="200", align="left">Spalte 1</th>
    <th width="200", align="left", style="padding-left:5px">Spalte 2</th>
  </tr>
</table>

</body>
</html>

[ 本帖最后由 fkk 于 2007-11-21 12:18 编辑 ]
1

评分人数

TOP