我试图让我的图像onclick打开一个文件上传器,但什么都不起作用。
html:
<a href="#">
<figure class="profile-picture" id="profile-picture">
</figure>
</a>css:
figure.profile-picture {
background-position: center center;
background-image: url(/img/QNdefualt.jpg);
background-size: cover;
border: 5px #efefef solid;
border-radius: 50%;
bottom: -50px;
box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2), 1px 1px 4px gba(0,0,0,0.3);
height: 148px;
left: 150px;
position: absolute;
width: 148px;
z-index: 3;
}
.profile-picture:hover {
background-image: url(/img/defualt-hover.png);
background-size: cover;
}我已经尝试了onclick,但我一直收到错误。请帮帮忙。
https://stackoverflow.com/questions/41528934
复制相似问题