CSS 圖片廊
.responsive .img {
border: 1px solid #ccc;
}
.responsive .img:hover {
border: 1px solid #777;
}
.responsive .img img {
width: 100%;
height: auto;
}
.responsive .desc {
padding: 15px;
text-align: center;
}
.responsive {
box-sizing: border-box;
}
.responsive {
padding: 0 6px;
float: left;
width: 24.99999%;
}
@media only screen and (max-width: 700px){
.responsive {
width: 49.99999%;
margin: 6px 0;
}
}
@media only screen and (max-width: 500px){
.responsive {
width: 100%;
}
}
.clearfix:after {
content: “”;
display: table;
clear: both;
}
以下是使用CSS創(chuàng)建圖片廊:
更多實(shí)例
響應(yīng)式圖片廊
使用 CSS3 的媒體查詢(xún)來(lái)創(chuàng)建響應(yīng)式圖片廊:




新聞熱點(diǎn)
疑難解答
圖片精選