如何去除圖片空白處的錨標籤?現在空格是可點擊的,我不希望這樣。將鼠標懸停在圖像周圍的空白處,即可獲得我正在談論的內容。該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>
如何從圖像周圍的空格去掉標籤的填充?任何幫助表示讚賞。
你能解釋一下flex:0 0 25%;是什麼?或者將我鏈接到關於它的文檔?我目前正在使用移動設備,並且您的答案能夠正常工作,一旦我在桌面上進行測試,我會將其標記爲正確答案。謝謝。 –
這是'flex-grow','flex-shrink'和'flex-basis'的縮寫。在這種情況下,它表示*不增長*,*不縮小*,設置25%的固定寬度。 –