私はこの単純なHTML / CSSを持っています
<div class="image-group">
<img src="http://placehold.it/80x80" />
<img src="http://placehold.it/120x120" />
<img src="http://placehold.it/80x80" />
</div>
.image-group img {
margin: 0;
padding: 0;
}
画像がくっつかないのはなぜ?Chrome のインスペクターを使用して要素を検査すると、画像の間に何も表示されませんが、間隔が空いています。
負のマージンを適用することでそれらをくっつけることができますが、私によれば、とにかくくっつくはずです。