0
我想有一个类名为“wanttosetborder”的表的边框。没有div,它为此表设置边框。使用div标签,它将设置边界,直到div标签之前的最后一行(即显示H2之后的一行)显示没有边框为止。为溢出的表设置边框是自动的
请找到下面的代码。
<html>
<head>
<head>
<style type="text/css">
#user{width: 50px;height:150px;overflow:auto;position:absolute}
</style>
</head>
</head>
<body>
<TABLE class="wanttosetborder" CELLPADDING=1 cellspacing="1" border="1">
<tr><td>ABC</td></tr>
<tr><td>H2</td></tr>
<tr>
<td>
<div id="user">
<table>
<?php for($i=1; $i<=10;$i++) { ?>
<tr><td>123</td> </tr>
<?php }?>
</table>
</div>
</td>
</tr>
</TABLE>
</body>
</html>
Thanku :-)工作得很好。 – satya 2010-06-07 14:33:24