搜索

最新评论

友情博客

RSS

我的 Blog:
sweetvanilla 最新的 20 条日志
[日记]
[网页制作]
[转载]
[好吃懒做]
全站 Blog:
全站最新的 20 条日志
 
如何固定层

加一句代码就可以实现相对定位
<center>
<table width="400" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC"><span style="position:relative">
<div id="Layer1" style="position:absolute; width:200px; height:38px; z-index:1; background-color: #00FFFF; left: 11px; top: 0px; layer-background-color: #00FFFF; border: 1px none #000000;">这是应用了相对定位的</div>
</span></td>
</tr>
<tr>
<td bgcolor="#666666">
<div id="Layer2" style="position:absolute; width:200px; height:38px; z-index:1; background-color: #00FF00; left: 200px; top: 175px; layer-background-color: #00FF00; border: 1px none #000000;">这是没有应用的</div>
</td>
</tr>
</table>
</center>

sweetvanilla 发表于 2006-6-20  [所属栏目:网页制作 | 返回首页]
小字体中字体大字体
评论(共 {Count} 条)
{CommentAuthor}:
{CommentTime}
{CommentUrl}
{CommentEmail}
{CommentIp}
{CommentContent}