<table align="center">
这样的写法可以,但我想用css控制的话,怎么办?
------解决方案--------------------
<style>
table#tb {margin:0 50%;} //根据宽度及表格宽度计算
</style>
<table id="tb" border="1" bordercolor="#00000">
<tr>
<td>table</td>
</tr>
</table>
------解决方案--------------------
- HTML code
<style>
Table{
star:expression(this.align='center')
}
</style>
<table width=100 border><tr><td>ok</td></tr></table>
<table width=100 border><tr><td>ok</td></tr></table>
------解决方案--------------------
- HTML code
<table style="margin:auto">
<tr>
<td>text</td>
</tr>
</table>