我怎么让一个表格的一行固定,不随拖动条而变动,就是想达到表头固定
css应该能做到这点吧
css应该能做到这点吧
解决方案 »
- select下拉选择框怎么实现跳转url
- 提交表单时,在submit时将表单内的参数全部跟在url后面提交了?
- 论坛怎样上传附件?
- JS这么调用不行吗,,就命啊
- 小妹明天要面试,请教几个问题啊,感激涕零
- 如何动态修改 table ?
- 请问如何控制javascript中<div>横行滚动条的位置总是在具中的位置
- GGJJ,请问一下,文件的查找的代码怎么写。我不是用数据库生成的,只是如产生文件夹,放在硬盘路径下面。让用户自己在文件夹中添加文件,
- 如何屏毕掉Ie页面上方的打印项!!!!!急急急
- js如何实现提示信息
- 请问通过rowindex即行号,怎么得到该行的对象?
- 怎么获取input file 控件选择的文件的大小呢?
固定表头:为 datagrid 添加属性 useaccessibleheader="true"。
注:必须安装 FrameWork 1.1 sp1。须 IE5.0 或更高版本可用。
*/
th
{
line-height: 1.5em;
color: #333333;
background-color: #e3e3e3;
border: #a4cdf2 1px solid;
border-top-width: 2px;
border-bottom-width: 2px;
position: relative;
top: expression(document.getElementById("divDatagrid").scrollTop);
z-index: 10;
}/*
固定列:为 asp:boundcolumn 添加属性 headerstyle-cssclass="locked" itemstyle-cssclass="locked"。
注:须 IE5.0 或更高版本可用。
*/
td.locked, th.locked {
border: #a4cdf2 1px solid;
position: relative;
left: expression(document.getElementById("divDatagrid").scrollLeft);
}/* Keeps the header as the top most item. Important for top left item */
th.locked {z-index: 99;}
http://community.csdn.net/Expert/topic/5345/5345647.xml?temp=.7157404