<table width=888 id=table1 height=555 border=1>
<tr><td>
<div id=div1>xxx</div>
</td></tr>
</table>
<script>
var a=document.getElementById('table1');
with(a.style) {
position='absolute';
left=parseInt((document.body.clientWidth-a.offsetWidth)/2);
top=parseInt((document.body.clientHeight-a.offsetHeight)/2);
}
</script>
<tr><td>
<div id=div1>xxx</div>
</td></tr>
</table>
<script>
var a=document.getElementById('table1');
with(a.style) {
position='absolute';
left=parseInt((document.body.clientWidth-a.offsetWidth)/2);
top=parseInt((document.body.clientHeight-a.offsetHeight)/2);
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货