自定义 input type=file样式
来源:互联网 发布:数据库无法写入中文 编辑:程序博客网 时间:2024/05/22 02:14
这里采用 span标签嵌套input标签,因为div标签在ie里有问题,具体参考该文章:http://www.cnblogs.com/kongxianghai/p/5624785.html
里面很详细,代码如下:
<style> .fileinput-button { position: relative; display: inline-block; overflow: hidden; } .fileinput-button input{ position:absolute; right: 0px; top: 0px; opacity: 0; -ms-filter: 'alpha(opacity=0)'; font-size: 200px; cursor: pointer; } .btn-success{ height: 55px; display: inline-block; border-radius: 5px; line-height: 3.3; border: 1px solid rgb(90, 90, 90); background-color: #00C1B3; font-size: 18px; width: 45%; color: rgb(69, 69, 69); text-align: center; margin-top: 100px; cursor: pointer; } </style></head>
body里面是:
<span class="btn-success fileinput-button"><span>上传</span><input type="file">
阅读全文
0 0
- html自定义input type='file'样式
- 自定义 <input type="file" /> 样式
- 自定义 input type=file样式
- 自定义input[type=”file”]的样式
- 自定义input type=file 样式 美化input type=file 改变input type=file控件“丑陋面貌”
- 自定义 input type="file" 文件上传样式
- [JS实例] input type=file 自定义样式的方法
- input type="file" 样式的模仿
- 定义input type=file 样式
- 修改 input[type="file"] 原生样式
- input[type="file"]的样式修改
- html5 <input type='file' 样式修改
- input,type="file"的样式修改
- 美化input type="file"的样式
- 如何修改input type="file"样式
- 自定义input[type=radio]单选框样式
- 自定义input[type="radio"]的样式
- 自定义input[type="checkbox"]的样式
- PSPNT3.0打开彩色图输出C、M、Y、K四色图
- 分布式服务框架dubbo原理解析
- maven 启动tomcat 报错Failed to start component [StandardEngine[Tomcat].StandardHost
- 【Linux】epoll 服务器
- WebClient 基本使用,模仿网页请求【L】
- 自定义 input type=file样式
- Android开发工具下载及环境配置
- Lua基础---循环语句
- [LeetCode]147. Insertion Sort List 深入浅出讲解和代码示例
- Servlet如何获取Spring里的数据[L]
- 安卓系统广播大全
- Ubuntu下安装网易云音乐
- JVM内存调优
- Android自定义view详解