高度不适应 高度不顺应是当内层对象的高度产生变更时外层高度不克不及被动发展调节,分外是当内层对象运用margin 或paddign 时。
例:
- #box {bac公斤round-color:#eee; }
- #box p {margin-top: 20px;margin-bottom: 20px; text-align:center; }
- <div id="box"> <p>p对象中的形式</p> </div>
用意方式:在P对象上下各加2个空的div对象CSS代码:
{height:0px;overflow:hidden;}也许为DIV加之border属性。
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css-texiao/texiao53360.shtml