本文共 243 字,大约阅读时间需要 1 分钟。
浏览器基本区分为两大阵营,市场占有率巨头IE和以Firefox代表的部分,其中包括Opera、Safari、Chrome等,针对标准的支持不同,样式表也需智能的区分何种浏览器,以决定具体的样式,其中常用的方法就是下例
#content { width: 100%; height: 97% !important; height: 97.5%;}
因important标识IE无法识别,所以important前的样式将用于Firefox,后边的样式用于IE。这个也算是Web开发的小技巧。
转载地址:http://kjhdi.baihongyu.com/