Getting image to stretch a div

前端 未结 7 450
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 00:34

How can I get an image to stretch the height of a DIV class?

Currently it looks like this:

7条回答
  •  日久生厌
    2021-02-04 01:02

    Assuming @John Millikin is correct, the code

    .product + * { clear: left; }
    

    would suffice to do the same thing without forcing you to manually adjust the code after the div.

提交回复
热议问题