【发布时间】:2018-03-22 05:49:13
【问题描述】:
如何删除图像空白区域周围的锚标记?现在空格是可点击的,我不希望这样。将鼠标悬停在图像周围的空白处,你就会明白我在说什么。 codepen链接是https://codepen.io/sakirinteser/pen/rGvbmO
.portfolio h2 {
text-align: center;
font-size: 2.5em;
color: #27292d;
padding-top: 4%;
line-height: 1.3;
}
.port {
text-align: center;
color: #27292d;
padding-bottom: 3%;
}
.thumbs {
display: flex;
justify-content: space-around;
margin-bottom: 2%;
}
.thumbs img {
width: 60%;
padding: 0 !important;
}
.portfolio a {
margin: 0 auto;
text-align: center;
}
<div class="portfolio">
<section>
<h2>Past Work</h2>
<p class="port">We have worked on a diverse range of projects in the past, here is a quick snapshot:</p>
<div class="thumbs designthumbs">
<a href="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781" class="swipebox"><img class="wow animated fadeInLeft" src="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781"></a>
<a href="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781" class="swipebox"><img class="wow animated fadeInLeft" src="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781"></a>
</div>
<div class="thumbs">
<a href="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781" class="swipebox"><img class="wow animated fadeInLeft" src="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781"></a>
<a href="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781" class="swipebox"><img class="wow animated fadeInLeft" src="https://cmeimg-a.akamaihd.net/640/clsd/getty/c64f76dc20c246ca88ee180fe4b4b781"></a>
</div>
</section>
</div>
如何从图像周围的空白处删除 a 标签的填充?任何帮助表示赞赏。
【问题讨论】: