摘要: html:<div id="header">头部</div><div id ="container"> <div class="mainbox">主内容区域</div> <div class="sidebox">侧边栏</div></div><div id="footer">页脚</div>1. 背景模拟:背景模拟主要依靠一张图片,然后将其平铺,使页面在视觉上,产生等高效果;2 阅读全文
posted @ 2012-03-23 10:41 兰芷 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 最小高度height:auto !important; height:400px; min-height:400px;由于IE6对!important的解释存在bug,所以它只识别height:400px这一句,超过400px后,IE6自身会增加盒子的高度;IE7和其他标准浏览器三句都能识别,虽然定义height:400px,但又有了height:auto !important,所以超过400px也能自动增加盒子的高度。最大高度height:auto !important; height:500px; max-height:500px; overflow:hidden;IE6不识别max-he 阅读全文
posted @ 2012-03-23 10:19 兰芷 阅读(440) 评论(0) 推荐(0) 编辑