日期:2014-05-16  浏览次数:21108 次

div怎么悬浮在table上?
如题,求代码,谢谢!
------解决方案--------------------
<html><head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<style type="text/css">
table td {
border:1px solid #00FFFF;
}
</style>
</head>
<body style='margin:0; padding:0; overflow:hidden; background:url(../images/index/userInfo_txt_bg.jpg) repeat-x top;'>
<div style="width:500px;height:500px;">
<table style="width:100%;height:100%;border:1px solid #00FFFF" cellpadding="0" cellspacing="0">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>3</td>
<td>3</td>
</tr>
</table>
</div>
<div style="position:absolute;top:30px;left:30px;background-color:#f0f0f0;width:120px;height:120px;">
我是DIV,我浮在了table上面啦
</div>
</body>
</html>