改变input file样式
2013-09-16 18:46
225 查看
You can't modify much about
Best you can do is place whatever you want to trigger it on your page, and then absolutely position the
that with
The user's click on your apparent control will really trigger the invisible
top.
Here is how I may do it with CSS...
input[type=file].
Best you can do is place whatever you want to trigger it on your page, and then absolutely position the
inputover
that with
opacity: 0.
The user's click on your apparent control will really trigger the invisible
inputon
top.
Here is how I may do it with CSS...
HTML
<div id="upload-file-container"> <input type="file" name="photo" /> </div>
CSS
#upload-file-container { background: url(images/custom-file-input.png) no-repeat; } #upload-file-container input { filter: alpha(opacity=0); opacity: 0; }
相关文章推荐
- 改变input type="file" 文字、样式等
- html的文件控件<input type="file">样式的改变
- 改变 input file 样式的两种方法
- 自定义input type=file 样式 美化input type=file 改变input type=file控件“丑陋面貌”
- 改变 input file 样式
- 改变 input file 样式的两种方法
- input file 的样式改变的实例
- 改变input type file的默认样式
- select、input等默认样式的改变,包含下拉三角
- 自定义input[type="file"]的样式
- 修改 上传图片按钮input-file样式。。
- input file样式
- JS 更改表单的提交时间和Input file的样式
- 关于<input type="file">样式的美化
- 设置<input type="file">的默认样式
- 自定义<input type="file">样式1
- input[type=file] 样式美化,input上传按钮美化
- 修改input file的样式(或用按钮button替代file)
- File input 的样式和文字的更改方法__适用于Firefox、IE等浏览器
- 用JS实现input中的file标签的样式(当要修改file标签的字体样式时使用)