5 回答

幕布斯6054654
TA贡献1876条经验 获得超7个赞
绝对定位,,你可以先将表格,放在一个div层里边比如<div id="tablecontent"><table>...</table></div>然后css这样<style>#tablecontent {position:absolute;//绝对定位这儿一定是absolute否则,left,top无效left:100px;//距浏览器左边框距离top:|100px;//距浏览器上边框距离}</style>

犯罪嫌疑人X
TA贡献2080条经验 获得超4个赞
是什么距离什么的顶部?你没有说清楚。不过也没关系,就是在要有距离的那两个表格之间,在外面的那个的属性里加上 style="margin-top:20px"20是我随便写的,大小你随便调。

噜噜哒
TA贡献1784条经验 获得超7个赞
可以用结对布局来做..
#a {
position: absolute;
top: 100px
right: 200px
width: 300px;
}
这个就是把 id为a的元素块 设置到到浏览器的一个绝对位置 不管那个位置有什么 这个元素都会盖在上边
添加回答
举报
0/150
提交
取消