もしあなたが次の問題に関していくつかのガイダンスを持っておきたいなら、助けてください。 CSS - 複数行折り返し
イメージの説明にテキストが多すぎると、基本的にイメージがプッシュアップされます。そのような問題に対処する最も魅力的な方法は何でしょうか?
ありがとうございました。
は、私は基本的なフィドル作成 - あなたは、CSSの一部以下同じアプローチの更新のためのflex
を使用することができますインライン
div.gallery {
border: 1px solid #ccc;
}
div.gallery:hover {
border: 1px solid #777;
}
div.gallery img {
width: 30%;
height: auto;
}
div.desc {
padding: 15px;
text-align: center;
}
* {
box-sizing: border-box;
}
.responsive {
padding: 0 6px;
display: inline-block;
width: 15.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;
}
さらに、完全なファイル名をツールチップとして表示することもできます。 –