我使用了引導縮略圖類來創建可點擊圖片的網格。出於某種原因,他們有一個邊界,它讓我討厭。Bootstrap。刪除縮略圖圖片的邊框
HTML:
<div class = "the-grid">
<div class = "container">
<div class = "row">
<div class = "col-md-4">
<div class = "thumbnail">
<image src = "Images/data.png"/>
</div>
<div class = "thumbnail">
<image src = "Images/cloud.png"/>
</div>
</div>
</div>
</div>
CSS:
<style>
.the-grid{
background-color: #efefef;
border-bottom: 1px solid #DBDBDB;
min-height: 100%;
}
.the-grid .row .thumbnail{
border: 0px;
box-shadow: none;
border-radius:0px;
background-color: #000;
}
.the-grid .row .thumbnail img:hover {
background-color: #000 !importantl
</style>
沒有運氣。它仍然存在。 –
http://codepen.io/riogrande/pen/KdyeoG 檢查此鏈接,從CSS給你在這裏我刪除了邊框,但如果邊框仍然在這裏,那麼這不僅是選擇器是針對縮略圖。檢查它與螢火蟲或devtools準確地看到。 – riogrande