input[type=file] 样式美化,input上传按钮美化
2024-08-30 08:14:27
<style>
.file {
position: relative;
display: inline-block;
background: #D0EEFF;
border: 1px solid #99D3F5;
border-radius: 4px;
padding: 4px 12px;
overflow: hidden;
color: #1E88C7;
text-decoration: none;
text-indent: 0;
line-height: 20px;
}
.file input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
}
.file:hover {
background: #AADFFD;
border-color: #78C3F3;
color: #004974;
text-decoration: none;
}
</style>
<div class="file">选择文件
<input type="file" name="" id="">
<button type="submit">上传</button>
</div>
最新文章
- 简单正则匹配QQ邮箱
- 制作IOS企业版App网页扫描二维码下载安装
- django 安装
- oracle ORA-00911 问题 解决
- 2013年的一些常用PHP資源整理下載
- .NET Linq/MVC/架构
- 利用monkeyrunner实现Android屏幕连续截图
- 美工与程序猿的Web工作怎样做到相对分离?
- OC之类与对象
- 天气渐热,来片雪花降降温——Android自定义SurfaceView实现雪花效果
- BZOJ 1018: [SHOI2008]堵塞的交通traffic [线段树 区间信息]
- Cassanfra、Hbase和MongoDB的选取
- NPOI生成不规则Excel表格(并以流的形式下载,不将文件保存在服务器上,直接在客户端导出excel)
- esayui扩展验证方法
- 容器化系列 - Zookeeper启动和配置 on Docker
- 【题解】 bzoj2982: combination (Lucas定理)
- 饮冰三年-人工智能-linux-06 系统启动流程及安全
- Idea的Maven项目引入模块
- ios 动画的时候 如果加阴影 会卡顿的
- POJ3070:Fibonacci——题解