## 1.Html文件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
img {
width: 100px;
height: 100px;
}
.btn {
position: relative;
display: inline-block;
width: 75px;
height: 25px;
overflow: hidden;
line-height: 25px;
text-align: center;
vertical-align: middle;
background-color: #f90;
border: 1px solid #f90;
border-radius: 5px;
font-size: 14px;
color: #fff;
}
.btn:hover {
background-color: rgba(255, 153, 0, 0.822);
border: 1px solid rgba(255, 153, 0, 0.822);
}
.btn input {
position: absolute;
left: 0;
top: 0;
opacity: 0;
}
</style>
</head>
<body>
<img src="" a
自定义上传图片(自定义上传input样式)
最新推荐文章于 2024-08-12 16:30:53 发布