zoukankan
html css js c++ java
常用JS 1
页面加载的时候重置控件值
<
body leftmargin
=
"
0
"
topmargin
=
"
0
"
onload
=
"
document.form1.reset()
"
>
禁用ie中的后退按钮
<
body leftmargin
=
"
0
"
topmargin
=
"
0
"
onload
=
"
window.history.forward(1)
"
>
固定表头一
<
html xmlns
=
"
http://www.w3.org/1999/xhtml
"
>
<
head
>
</
head
>
<
body
>
<
div style
=
"
overflow: auto; height: 200px
"
>
<
table cellspacing
=
"
0
"
border
=
"
1
"
>
<
tr style
=
"
position: relative; top: -1px; background-color: white;
"
>
<
th
>
表头1
</
th
>
<
th
>
表头2
</
th
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
</
table
>
</
div
>
</
body
>
</
html
>
固定表头二
<
html
>
<
head
>
<
style type
=
"
text/css
"
>
#fix_table
{ border
-
collapse : collapse;table
-
layout :
fixed
; width
=
"
100%
"
}
#table_container
{ width : expression(document.body.clientWidth); height :
50
; overflow : scroll; }
th.locked_top
{top : position : relative; z
-
index :
1
}
</
style
>
</
head
>
<
body
>
<
form id
=
"
Form1
"
method
=
"
post
"
runat
=
"
server
"
>
<
div id
=
'
table_container
'
class
=
"
tableContainer
"
>
<
table border
=
"
0
"
cellpadding
=
"
0
"
cellspacing
=
"
0
"
id
=
"
fix_table
"
>
<
tr height
=
"
20
"
valign
=
"
top
"
>
<
th
class
=
"
locked_top
"
>
表头1
</
th
>
<
th
class
=
"
locked_top
"
>
表头2
</
th
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
<
tr
>
<
td
>
zdzhuo
</
td
>
<
td
>
zdzhuo
</
td
>
</
tr
>
</
table
>
</
div
>
</
form
>
</
body
>
</
html
>
查看全文
相关阅读:
Java程序员必备后台前端框架--Layui【从入门到实战】(一)
Java程序员必备后台前端框架--Layui【从入门到实战】(三)
Java程序员必备后台前端框架--Layui【从入门到实战】(二)
机器学习平台和深度学习平台
python资源
Wireshark使用入门(转)
xxxxxxxxxxxxxxxxxxx
大众字体
起点字体
pycharm调试技巧
原文地址:https://www.cnblogs.com/happlyonline/p/802865.html
最新文章
阿里、腾讯、网易、极验、顶象滑块验证码识别
Python3 日期时间格式化(带毫秒)
MySql 查询变慢使用游式游标方法
Notepad++ 正则规则
Windows 安装Git及TortoiseGit与配置
python 正则去除末尾字符串
Python3读取写入json的中文乱码问题 u82f1 u5bf8
JS输出为[object Object] 如何解决
Windows运行js 报 TypeError: 'console' 未定义 错误
mac m1 docker php 相关软件,后端开发 docker_compose.yml 已验证通过
热门文章
《ABCD组》实验十一 团队作业7:团队项目设计完善&编码
《ABCD组》第六次作业:团队项目系统设计改进与详细设计
ABCD组·第五次团队作业项目需求分析改进与系统设计
《ABCD组》第四次作业:项目需求调研与分析
《ABCD组》第三次作业:团队项目的原型设计
《ABCD组团队》第二次作业
《ABCD组》第一次作业:团队亮相
Axios发送请求时params和data的区别
Mac idea 快捷键
css图片不变形处理
Copyright © 2011-2022 走看看