react-alioss
Version:
说明: 基于阿里云实现前端上传图片到阿里云 需要通过后台接口获取阿里云上传凭证
90 lines (89 loc) • 1.56 kB
CSS
.ali_upload .change {
position: absolute;
overflow: hidden;
right: 0;
top: 0;
opacity: 0;
left: 0;
bottom: 0;
width: 100%;
}
.ali_upload .reporate {
display: none;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.ali_upload .reporate:after {
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
background-color: #000000;
opacity: 0.5;
z-index: 1;
left: 0;
top: 0;
}
.ali_upload .reporate .inconWrap {
position: absolute;
left: 50%;
top: 50%;
z-index: 2;
transform: translate(-50%, -50%);
width: 48px;
}
.ali_upload .reporate .inconWrap .icons {
color: #ffffff;
position: relative;
z-index: 2;
width: 16px;
margin: 0 4px;
cursor: pointer;
}
.ali_upload .block {
width: 100px;
height: 100px;
border: 1px dashed #dfdfdf;
padding: 5px;
background-color: #ffffff;
overflow: hidden;
display: inline-block;
margin-right: 8px;
margin-bottom: 8px;
}
.ali_upload .upload {
width: 100px;
height: 100px;
border: 1px dashed #dfdfdf;
padding: 5px;
background-color: #ffffff;
overflow: hidden;
display: inline-block;
margin-right: 8px;
margin-bottom: 8px;
position: relative;
line-height: 90px;
text-decoration: none;
color: #666;
text-align: center;
}
.ali_upload .blockinner {
position: relative;
}
.ali_upload .blockinner:hover .reporate {
display: block;
}
.ali_upload .uploadState {
position: absolute;
left: 0;
bottom: 0;
z-index: 3;
text-align: center;
}
.ali_upload .error {
color: #ff0000;
}