div铺在table上
来源:百度知道 编辑:UC知道 时间:2024/06/08 14:27:15
你好:
我帮你做了一个
提示:把代码保存为a.htm即可预览效果
代码:
<script>
function show()
{
var div1=document.getElementById("div1");
var table1 = document.getElementById("table1");
div1.style.top = table1.offsetTop;
div1.style.left = table1.offsetLeft;
div1.style.width=table1.width;
div1.style.height=table1.height;
}
</script>
<body>
<table id="table1" style="position:absolute; top:100;left:100" width="600px" height="600px" border="1" cellpadding="0" cellspacing="0">
<tr height="200px">
<td width="200px">
<a href = "http://zhidao.baidu.com/">TABLE转换DIV+CSS
table放在div中出现排版错误
div TABLE 哪个速度快?
div是不是跟table一样的作用
div+html与table+html的优缺点?
用table定位好还是div好?
为什么说DIV+CSS优于TABLE+CSS
网页布局用div还是table好?
如何把table改成div+css
table和DIV相比较没好处