关注前端开发
关注用户体验

针对IE的CSS hack 全面 实用

.all IE{property:value\9;}
.gte IE 8{property:value\0;}
.lte IE 7{*property:value;}
.IE 8/9{property:value\0;}
.IE 9{property:value\9\0;}
.IE 7{+property:value;}
.IE 6{_property:value;}
.not IE{property//:value;}

lte:就是Less than or equal to的简写,也就是小于或等于的意思。

lt :就是Less than的简写,也就是小于的意思。

gte:就是Greater than or equal to的简写,也就是大于或等于的意思。

gt :就是Greater than的简写,也就是大于的意思。

!  :就是不等于的意思,跟javascript里的不等于判断符相同

赞(2)
未经允许不得转载:大前端 » 针对IE的CSS hack 全面 实用
分享到: 更多 (0)

评论 34

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #24

    I know this website gives quality dependent articles or reviews and extra stuff, is there any other web site which provides
    such data in quality?

  2. #23

    F*ckin’ remarkable things here. I’m very glad to see your post. Thanks so much and i am taking a look ahead to touch you. Will you please drop me a mail?

    Leana Chiarella2周前 (05-13)回复
  3. #22

    leather jackets can really make you look good, they also make you feel warm and comfortable;;

    Nonton Anime2周前 (05-11)回复
  4. #21

    Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it [Reply]

    cat products3周前 (05-08)回复
  5. #20

    I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Exceptional work!

    Ira Accola2个月前 (04-08)回复
  6. #19

    I blog often and I genuinely thank you for your information. Your article has really peaked my interest. I’m going to book mark your blog and keep checking for new details about once per week. I opted in for your RSS feed as well.

    DMC52个月前 (03-31)回复
  7. #18

    There are a handful of intriguing points at some point in this posting but I don’t determine if I see these center to heart. There exists some validity but Let me take hold opinion until I take a look at it further. Excellent write-up , thanks and we want a lot more! Combined with FeedBurner too

    my singing monsters2个月前 (03-28)回复
  8. #17

    Youre so cool! I dont suppose Ive learn anything like this before. So nice to find any person with some unique thoughts on this subject. realy thank you for starting this up. this web site is one thing that is wanted on the net, somebody with a little bit originality. helpful job for bringing one thing new to the web!

    Eldridge Oconnor3个月前 (03-11)回复
  9. #16

    daanjia.com lanvbo.com

    7232年前 (2017-07-16)回复
  10. #15

    😳 学习了

    Sunshine6年前 (2013-09-07)回复
  11. #14

    😆 谢谢

    A7年前 (2012-01-13)回复
  12. #13

    .IE 9{property:value\9;} ie8也识别的

    Tmenglang8年前 (2011-12-19)回复
  13. #12

    不错~学习了~

    野草8年前 (2011-07-21)回复
  14. #11

    很全面。不错。我记录下。不过我在网上发现有个有关大于 号的bug >margin:20px;不知道是针对ie几的。

    wmtimes8年前 (2011-07-19)回复
    • 这个还真没遇见,待会查查去

      浩子8年前 (2011-07-20)回复
  15. #10

    现在ie9其实很少出问题。

    vimest8年前 (2011-07-13)回复
  16. #9

    相当的受用啊… IE9那个现在刚知道. 😆

    ADD~``8年前 (2011-07-12)回复
  17. #8

    .IE 8{property:value/9;}
    IE8专属hack

    小松8年前 (2011-07-07)回复
  18. #7

    好东西,学习了。

    和尚8年前 (2011-07-07)回复
  19. #6

    提交评论很慢,不知道为何。发了几条均未成功。

    John8年前 (2011-07-05)回复
  20. #5

    SatSun Studio 郑重承诺,本站所有添加的友链,绝不会单方面解除。最近有些人诋毁本站,说我私自撤链接。纯属一派胡言。

    satsun8年前 (2011-07-05)回复
    • 哈哈,被诬告啦,安慰下下

      浩子8年前 (2011-07-05)回复
    • 呵呵,有如此说?先加我一个友链吧!

      John8年前 (2011-07-05)回复
  21. #4

    我的排名很靠前啊,你站点JS多不多 ,怎么觉得打开的速度一般啊

    satsun8年前 (2011-07-05)回复
    • 不多的,速度还行吧,万网主机

      浩子8年前 (2011-07-05)回复
  22. #3

    写错了 邮箱了果然心情不爽 。。。

    satsun8年前 (2011-07-05)回复
  23. #2

    今天我好恼火。。。 😡
    SatSun Studio 郑重承诺,本站所有添加的友链,绝不会单方面解除。最近有些人诋毁本站,说我私自撤链接。纯属一派胡言。

    satsun8年前 (2011-07-05)回复
  24. #1

    掌握这几条,还是挺好用的。

    liveme8年前 (2011-07-05)回复

themebetter 国内更好的WordPress主题服务商

立即前往