方法一:
min-height:160px; 设置对象box的最小高度,firefox、ie7+适用;
height:auto!important;
设置对象box的高度无自动定位,使用!important对下height高度定位设置进行优先级提升;
height:160px; 设置对象高度,因上属性!important运用,此属性只有IE6认。
方法二:
min-height:160px; 设置对象box的最小高度,Firefox、IE7+适用;
height:auto; 设置对象box的高度无自动定;
_height:160px; 设置对象高度,此属性只有IE6认,在IE6下此属性覆盖上auto属性。
在min-height容器中不能使用float属性,否则会失效。如果在大容器中使用,可在内部最后清除float,示例:
<p> </p><p></p><div class="aritcle_card flexRow artxards"> <div class="artcardd flexRow"> <a class="aritcle_card_img" rel="nofollow" href="/xiazai/gongju/2905" title="CSS"><img src="https://img.php.cn/upload/manual/000/969/633/6af2b1226ad9e733.png" alt="CSS" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a> <div class="aritcle_card_info flexColumn"> <a rel="nofollow" href="/xiazai/gongju/2905" title="CSS" class="overflowclass">CSS</a> <p class="overflowclass">CSS 官方网站入口。访问 W3C 的 CSS 页面,查看 CSS 标准、学习资料与工作组动态;CSS 是 Web 标准,无需下载安装。</p> </div> <a rel="nofollow" href="/xiazai/gongju/2905" title="CSS" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span> </a> </div> </div> <p></p> <p></p>
前端入门到VUE实战笔记:立即使用
在学习笔记中,你将探索 前端 的入门与实战技巧!










