css表头固定样式的方法
2015-01-29来源:易贤网

本文实例讲述了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样式设计有所帮助。

更多信息请查看IT技术专栏

2026公务员·事业单位培训课程试听报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息