改变 input file 样式
2016-08-23 12:22
399 查看
<span style="font-size:24px;"><!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>定义input type="file" 的样式</title> <style type="text/css"> body{ font-size:14px;} input{ vertical-align:middle; margin:0; padding:0} .file-box{ position:relative;width:340px} .txt{ height:22px; border:1px solid #cdcdcd; width:180px;} .btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; width:70px;} .file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px } </style> </head> <body> <div class="file-box"> <input type='text' name='textfield' id='textfield' class='txt' /> <input type='button' class='btn' value='浏览...' /> <input type="file" name="fileField" class="file" id="fileField" size="28" onchange="document.getElementById('textfield').value=this.value" /> </div> </body> </html></span>
相关文章推荐
- 改变input file样式
- 改变 input file 样式的两种方法
- 自定义input type=file 样式 美化input type=file 改变input type=file控件“丑陋面貌”
- 改变input type="file" 文字、样式等
- html的文件控件<input type="file">样式的改变
- 改变 input file 样式的两种方法
- input file 的样式改变的实例
- 改变input type file的默认样式
- css input[type=file] 样式美化(input上传文件样式 )
- html中通过css改变input样式特效
- input type= file 如何更改自定义的样式
- ajaxfileupload单文件上传兼容IE8及 input type=file样式修改
- css input[type=file] 样式美化,input上传按钮美化
- input file上传文件样式支持html5的浏览器解决方案
- 用JS实现input中的file标签的样式(当要修改file标签的字体样式时使用)
- <input type="file">定义样式并获取上传文件路径及指定文件类型
- css input[type=file] 样式美化,input上传按钮美化
- 图片提交按钮样式修改 input type=file
- 变相自定义input标签file类型样式
- 设置<input type="file">的默认样式