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(一)
MATLAB中load和imread的读取方式区别
图像Demosaic算法及其matlab实现
Matlab GUI学习总结
matlab gui matlab gui 鼠标点击显示图像颜色值
【图像处理】RGB Bayer Color分析
MATLAB图像处理_Bayer图像处理 & RGB Bayer Color分析
IPC图像处理项目流程图
matlab图像处理程序大集合
原文地址:https://www.cnblogs.com/happlyonline/p/802865.html
最新文章
简单倒计时
PHP数组循环遍历的四种方式
phpstrom 里能直接打开 .html和 .php 配置问题setting deployment
解决phpstrom 启动卡的问题 和index索引加载慢的问题
windows系统下删除Apache服务器有两种方法:
PHP中 数组---转--json json----转----数组
VUE学习目录--从基础到深入非常重要!
javascript 数组,对象所有的方法集合
JavaScript 中的常用12种循环遍历(数组或对象)的方法
vue搭配的UI框架 移动端 + pc端
热门文章
深入浅出学Java——HashMap
@resource和@autowired的区别
二叉树理论
二叉树基础
JVM(java虚拟机上)
java之多线程
spring之AOP详解
思考:为什么要设计equals()方法?
深入探究Java中equals()和==的区别是什么
spring之AOP理论
Copyright © 2011-2022 走看看