
2个回答
展开全部
简单实现
<table style="position:absolute;top:100px;left:100px;width:800px;border:1px solid #ccc;">
<tr><td>dsfds</td></tr>
</table>
调整top:100px;left:100px;把100改成你想要的
<table style="position:absolute;top:100px;left:100px;width:800px;border:1px solid #ccc;">
<tr><td>dsfds</td></tr>
</table>
调整top:100px;left:100px;把100改成你想要的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="kind">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="javascript" src="./js/jquery.js"></script>
</head>
<style>
table.pos {
position: absolute;
top: 300px;
left: 200px;
width: 280px;
border: 1px solid blue;
}
</style>
<body>
<table border="1" cellspacing="0" cellpadding="0" class="pos">
<tr>
<td>aaa</td>
<td>bbb</td>
</tr>
</table>
</body>
</html>
<script type="text/JavaScript">
<!--
//-->
</script>
<html>
<head>
<title> New Document </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="kind">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="javascript" src="./js/jquery.js"></script>
</head>
<style>
table.pos {
position: absolute;
top: 300px;
left: 200px;
width: 280px;
border: 1px solid blue;
}
</style>
<body>
<table border="1" cellspacing="0" cellpadding="0" class="pos">
<tr>
<td>aaa</td>
<td>bbb</td>
</tr>
</table>
</body>
</html>
<script type="text/JavaScript">
<!--
//-->
</script>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询