摘要:
让子元素自适应水平居中: 使用: 外框加上 .sl-floatcenter, 子元素加上 .sl-floatcenter-item,元素就可以自动根据父元素的宽度水平居中 结构: <ul class="sl-floatcenter fn-clear"> <li class="sl-floatcenter-item">item1</li> <li class="sl-floatcenter-item">item2</li> <li class="sl-float 阅读全文
摘要:
兼容解决方案: minMaxMin Max: 1. 方法:这个东西还是用JS解决吧,除min height CSS还不是那靠谱。 2.min-height: .min-height:200px;height:auto; _height:200px; /* hack for ie6 */ 3.max Height function setMaxHeight(elementId, height){ var container = document.getElementById(elementId); container.style.heig... 阅读全文
摘要:
兼容解决方案: POSITION:FIXED.fixed-top { bottom: auto; position: fixed; top: 0;}.fixed-bottom { bottom: 0; position: fixed; top: auto;}.fixed-left { left: 0; position: fixed; right: auto;}.fixed-right { left: auto; position: fixed; right: 0;} 阅读全文