what does \ mean in a css hex color notation?

前端 未结 2 1908
心在旅途
心在旅途 2021-01-04 04:52

I\'m curious what something like this means in CSS:

background-color: #080808 \\9;

I know the hex c

2条回答
  •  死守一世寂寞
    2021-01-04 04:58

    That's an old Internet Explorer hack

    \9 hack WORKS for: IE8 IE8 Standards, IE8 IE7 Standards, IE8 Quirks mode, IE7 Quirks, IE7 Standards (all varieties of IE8), IE6

    So, in short, if you want an IE CSS hack that works in all flavors of IE, use the backslash-nine hack.

    source

提交回复
热议问题