推 rabbithenry:給那個th加上一個name 然後直接.name 去指定排列 09/08 14:16
各位大大好~~~
小弟有一個 style.css如下:
a:link,a:visited{
text-decoration:none;
}
p, td, th {
font: 1.0em Arial, Helvetica, sans-serif;
}
.datatable {
border: 1px solid #D6DDE6;
border-collapse: collapse;
width: 75%;
margin-left:.3em;
margin-right:.2em;
margin-top:.3em;
margin-bottom:0.2em;
}
.datatable td {
border: 1px solid #D6DDE6;
padding: 4px;
}
.datatable th {
border: 1px solid #828282;
background-color: #BCBCBC;
font-weight: bold;
text-align: left;
padding-left: 4px;
}
我在表格中引用如下
<table class="datatable" border=1 cellspaing=3 >
<tr >
<th ALIGN=CENTER > 序號 </th>
<th> AAAAA </th>
<th> BBBBB </th>
<th> CCCCC </th>
<th> DDDDD </th>
<th colspan=2 > EEEEEEE </th>
</tr>
由於在style.css中<th>設為 text-align: left
請問我該如何將
<th colspan=2 > EEEEEEE </th> 設為置中~~~
另再請教一個問題~~~~
如何使用表格位置置中~~~~~
謝謝您的回答~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.29.241.8