CSS hack 效果在IE浏览器中显示的不同时,怎么调整
2017-10-29 本文已影响0人
爆米花0104
http://www.cnblogs.com/jr1993/p/4457970.html
条件法
<!--[if IE]> <![endif]-->
<!--[if IE 6]> <![endif]-->
<!--[if gte IE 6]> <![endif]-->
<!--[if lte IE 6]> <![endif]-->
<!--[if ! IE 6]> <![endif]-->
<!--[if ! IE> <![endif]-->

注意点:
lte:就是Less than or equal to的简写,也就是小于或等于的意思。
lt:就是Less than的简写,也就是小于的意思。
gte:就是Greater than or equal to的简写,也就是大于或等于的意思。
gt:就是Greater than的简写,也就是大于的意思。
!:就是不等于的意思。

条件法的if和style是平级的
前缀后缀法



CSS选择器法