让table 居于页面的正中间(上下左右均居中的方法)

?
<table bgcolor="#jnkc" width="300" height="200" style="position:absolute;z-index:1;left:expression((document.body.clientWidth-this.offsetWidth)/2);top:expression((document.body.clientHeight-this.offsetHeight)/2)">
<tr>
  <td>&nbsp;</td>
</tr>
</table>
posted @ 2013-08-19 14:26  wanhl  阅读(1737)  评论(0编辑  收藏  举报