您的位置:首页 > Web前端 > CSS

html+css实现自定义图片上传按钮

2019-01-17 11:24 281 查看
<label class="btn">
<span>选择图片</span>
<input type="file" />
</label>
.btn{
display: inline-block;
width: 75px;
height: 25px;
line-height: 25px;
border: 1px solid #23c6c8;
background: #23c6c8;
color: #fff;
text-align: center;
font-size: 14px;
border-radius: 3px;
overflow: hidden;
position: relative;
vertical-align: center;
}
.btn:hover{
border: 1px solid #23babc;
background: #23BABC;
}
input{
position: absolute;
left: 0;
top: 0;
opacity: 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: