上传控件CSS用图片代替
2024-08-21 15:48:29
<style type="text/css">
a.btn {width: 120px;height: 42px;overflow: hidden;display: block;text-decoration: none;background: url(/images/chose_file.gif) left top no-repeat;}
/*file设为透明,并覆盖整个触发面*/
a.files input{ margin-left: -350px;font-size: 30px;cursor: pointer;filter: alpha(opacity = ); background:#;filter:alpha(Opacity=);opacity:;-moz-opacity:;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=);-MS-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";/*为了兼容各种浏览器*/}
</style>
<a href="#" class="btn">
<input type="file" class="input_files" />
</a>
最新文章
- Lucene.net
- Java JDBC使用方法
- mvc理解篇
- Windows 8.1 新增控件之 TimePicker
- Grunt - grunt-contrib-connect
- 0511 backlog 项目管理
- SERVER 2012 R2 core域环境下批量创建用户
- tornado远远不止
- linux groupmems命令
- 修改MojoWeixin 只保留用户name 取消群昵称
- Delphi 实现无窗口移动(详细使用WM_NCHITTEST和PtInRect API进行测试)
- Establishing SSL connection without server&#39;s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if expl
- ArcGIS制图表达Representation实战篇3-控制点
- day_ha配置文件
- C# 三种打印方式含代码
- 说说PC站和移动站的移动适配关系优化
- kubernetes之configmap,深度解析mountPath,subPath,key,path的关系和作用
- Boost.Asio 网络编程([译]Boost.Asio基本原理)
- linux主机名的修改
- Restful API学习笔记