Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如图,是一个列表项,这个列表项里面,list-item 的高度是固定的,但是里面的图片和内容高度不固定,用样式如何做到不限定高度的情况下,让 img 和 p 自动填满 list-item呢?
list-item
img
p
<div class="list-item"> <!-- 封面 --> <img src="" alt=""> <!-- 内容 --> <p>卡片内容</p> </div>