改变 file 的 样式
来源:互联网 发布:游戏端口怎么截取 编辑:程序博客网 时间:2024/06/07 22:32
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<style>
input{border:1px solid #333333;color:#666666;background:#eeeeee;font:normal 12px Tahoma;height:18px}
</style>
</head>
<script>
function fclick(obj){
with(obj){
style.posTop=event.srcElement.offsetTop
var x=event.x-offsetWidth/2
if(x<event.srcElement.offsetLeft)x=event.srcElement.offsetLeft
if(x>event.srcElement.offsetLeft+event.srcElement.offsetWidth-offsetWidth)x=event.srcElement.offsetLeft+event.srcElement.offsetWidth-offsetWidth
style.posLeft=x
}
}
</script>
<body>
<form method="post" action="" enctype="multipart/form-data">
<input id="f_file"> <input type="button" onmouseover="fclick(t_file)" value="选择上传文件">
<input name="upload" type="file" style="position:absolute;filter:alpha(opacity=0);width:30px;" id="t_file" onchange="f_file.value=this.value" hidefocus>
</form>
</body>
</html>
- 改变 file 的 样式
- 改变file的样式
- input file 的样式改变的实例
- 改变input type file的默认样式
- 改变file框样式
- 改变input file样式
- 改变 input file 样式
- 改变 input file 样式的两种方法
- 改变 input file 样式的两种方法
- 改变datagrid的样式
- 改变网站的样式
- 改变Alert的样式
- 改变title的样式
- 改变actionbar的样式
- 改变链接的样式
- 改变Dialog的样式
- DatePickerDialog的样式改变
- ToggleButton样式的改变
- WEB编程开发常用的代码
- 关于开源的jrtplib的编译和应用程序的配置
- Python、Lua和Ruby——脚本大P.K.
- 创业艰难
- javascript 手册
- 改变 file 的 样式
- 过去这两年
- 10年编程无师自通
- [转] SQL SERVER 2005 JDBC 连接方法及注意要点.
- 定义对象
- AVKiller病毒的清除
- Ubuntu 常见问题及解决方案
- asp.net2.0学习指导 菜鸟到中级程序员的飞跃
- 漂亮的图片