欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

固定Table第一行或某幾行不隨滾動條滾動而滾動

  發(fā)布時間:2013-08-07 17:25:31   作者:佚名   我要評論
在某些時候會實(shí)現(xiàn)如這樣的效果:固定Table第一行或某幾行不隨滾動條滾動而滾動,示例代碼如下,感興趣的朋友可以參考下,希望對大家有所幫助
樣式:

復(fù)制代碼
代碼如下:

.fixedHead {
position: relative;
top:expression(this.offsetParent.scrollTop-2);
}

使用:

復(fù)制代碼
代碼如下:

<div>
<table class="con_tbl">
&nbsp; &nbsp; &nbsp; &nbsp; <tr class="fixedHead">
&nbsp; &nbsp; &nbsp; &nbsp; <th>標(biāo)題不動</th>
</tr>
<PRE class=html name="code">&nbsp; &nbsp; &nbsp; &nbsp; <tr>
&nbsp; &nbsp; &nbsp; <td>內(nèi)容滾動</td>
</tr></PRE></table>

</div>

<P></P>
<PRE></PRE>


<P></P>

相關(guān)文章

最新評論