一 效果图
二 代码
<div class="uploadImg"><div class="addPlus"></div></div>
.uploadImg {
width: 100px;
height: 100px;
background: #FFFFFF;
border: 1px solid #DDE2EC;
border-radius: 2px;
position: relative;
.addPlus {
margin:50px auto;
width: 0;
height: 0;
position: relative;
}
.addPlus:before,
.addPlus:after {
content: "";
position: absolute;
background: #DDE2EC;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.addPlus:before {
width: 40px;
height: 4px;
}
.addPlus:after {
width: 4px;
height: 40px;
}
}