IE7 ignores CSS attribute selector only on pages coming from production server

前端 未结 7 715
粉色の甜心
粉色の甜心 2021-02-07 03:25

On my website, IE7 seems to be ignoring certain CSS attribute selectors. The strange thing is that it only happens when the page comes from the production server. If I have the

7条回答
  •  逝去的感伤
    2021-02-07 04:16

    I just ran into this with both IE8 and IE9 and I found the solution!

    Now this may not translate exactly to IE7, but it should point you in the right direction.

    • Look through the menus for an item called "Compatibility View".
    • Give it a click and it opens a dialog where you can add websites to be shown in "Compatibility View".
    • Look below the list for a check box labeled "Display intranet sites in Compatibility View"
    • Uncheck it.

    It appears that Microsoft considers a host part of the "intranet" when it is:

    • joined to the same domain,
    • identified by an unqualified host name (ex "server" vs "server.example.com"), or
    • identified by a private IP address (10.x.x.x, 172.16-31.x.x, 192.168.x.x)

    It also looks like nothing is considered "intranet" if the client system is not joined to a domain.

提交回复
热议问题