一、CSS HACK
以下两种 步骤 几乎能解决现今全部HACK.
1, !important 随着IE7对!important的 支撑, !important 步骤现在只针对IE6的HACK.( 留神写法.记得该申明位置需求提前.)
2, IE6/IE77对FireFox *+html 与 *html 是IE特有的标签, firefox 暂不 支撑.而*+html 又为 IE7特有标签.<style>#wrapper{#wrapper { width: 120px; }*html #wrapper { width: 80px;}*+html #wrapper { width: 60px;}}</style>
留神: *+html 对IE7的HACK 必须 保障HTML顶部有如下申明: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
二、float 闭合( 革除浮动)
将以下代码加入Global CSS 中,给需求闭合的div外加 class="clearfix" 即可,屡试不爽.
<style>.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{display:inline-block;}.clearfix {display:block;}</style>