colspan,border-collapse,⽂本居中,⽂本框居中
div{
/*text-align  :center;//⽂本居中*/
font-size:14px;//字体⼤⼩为12像素
line-height:20px;
height:20px;
width:700px;
margin:0 auto;//⽂本框居中显⽰
}
// 表格单元横跨两列的表格:
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td colspan="2">January</td>
</tr>
<tr>
<td colspan="2">February</td>
</tr>
</table>
/
/  border-collapse:collapse 属性设置表格的边框是否被合并为⼀个单⼀的边框,还是象在标准的 HTML 中那样分开显⽰。
table
{
border-collapse:collapse;
}
div中的div居中

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。