css表头固定样式的方法
css表头固定样式的方法
发布时间:2016-12-27 来源:查字典编辑
摘要:本文实例讲述了css表头固定样式的方法。分享给大家供大家参考。具体实现方法如下:/*表头样式*/.scll{position:relativ...

本文实例讲述了css表头固定样式的方法。分享给大家供大家参考。

具体实现方法如下:

<style type="text/css">

/*表头样式*/

.scll {

position: relative;

top: expression(this.offsetParent.scrollTop);

//background: url(../img/tab_15.gif) repeat-x left;

background-color: #BCF4EC;

text-align: center;

vertical-align: middle;

text-indent: 5px;

}

/*div样式*/

.h_500 {

width: 100%;

overflow: auto;

height: 80%;/**根据具体的屏幕分辨率调整*/

border: 0px;

}

/*细线表格*/

.TABLE {

margin-top: 0px;

margin-bottom: 3px;

margin-bottom: 3px;

border-top: 0px;

border-bottom: 1px solid silver;

}

</style>

希望本文所述对大家的css样式设计有所帮助。

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新 Div+Css教程学习
热门 Div+Css教程学习
网页设计子分类