2013年2月17日
摘要: IE与FF浏览器CSS兼容技巧-Web标准教程一、《important 在IE6及FF中的使用》.box1 {width:150px !important;} .box1 {width:250px;} !important是说这个设置有优先级,IE碰到!important不会出错只是忽略他的功能,假如后面又设置了width,IE会以最后设置的 width为准,假如后面再没有其它设置,则会用当前这个值,也就是前面的!important那个值。比如:#test {width: 300px !important }IE与FF都显示300PX。假如后面还有值IE就显示后面的值,FF显示前面有!impo 阅读全文
posted @ 2013-02-17 15:18 bag-king 阅读(227) 评论(0) 推荐(0)
摘要: 为了兼容ie6(万恶的东西),用的是expression的方法在页头加入:<style type="text/css">body{ background-image:url(about:blank); background-attachment:fixed;/*必要,防抖动*/}.head,.foot{ position:fixed !important;/*ie7 ff*/ position:absolute; z-index:21; background:#999; height:30px; width:500px;}.foot{ bottom:0 !imp 阅读全文
posted @ 2013-02-17 15:11 bag-king 阅读(137) 评论(0) 推荐(0)
摘要: 问题一:最简单的鼠标移过手变型的css要改了 cursor:pointer;/*FireFox(火狐)不支持cursor:hand*/ dw8下面自动出来的也没有hand这个属性了,标准的是pointer问题二:FireFox(火狐)不支持滤镜 最常见的半透明不支持。filter: Alpha(Opacity=50); /* for IE */ opacity: .5;/* for Firefox */ style="-moz-opacity:0.5; filter:alpha(opacity=50);cursor:hand;" onmouseover="this 阅读全文
posted @ 2013-02-17 14:59 bag-king 阅读(211) 评论(0) 推荐(0)
摘要: 一、CSS HACK以下两种方法几乎能解决现今所有HACK.翻阅很多资料,已测试可以使用。1, !important随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.)PLAIN TEXTCSS:#wrapper{width: 100px!important; /* IE7+FF */width: 80px; /* IE6 */}2, IE6/IE77对FireFox*+html 与 *html 是IE特有的标签, firefox 暂不支持.而*+html 又为 IE7特有标签.PLAIN TEXTCSS:#wr 阅读全文
posted @ 2013-02-17 14:57 bag-king 阅读(189) 评论(0) 推荐(0)