0
我只想点击左侧的字母“F”和其他部分,使其不可点击。我正在尝试与CSS类潜水员,但不工作。css链接图像只能点击一个部分
的Html
<a href="https://www.google.com" class="diver" target="_blank">
<div style="margin-top:0px;">
<img src="http://www.upslike.net/imgdb/facebook-4846a5.png" width="30%" height="60px">
</div>
</a>
CSS
<style>
.diver a{
display:block;
width:100px;
height:60px;
}
</style>
您可能需要改变你的HTML –
...或者你的CSS。 –
html – storks