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

前端 未结 7 716
粉色の甜心
粉色の甜心 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条回答
  •  梦毁少年i
    2021-02-07 03:55

    I get a feeling it has something to do with the server (Based on the apache/coyote I guess you're using tomcat?) and either something to do with whitespaces, or BOF, or improper utf-8 setting (i've heard of issues where header claims to be utf-8 but isn't). If you have any whitespace before the html declaration, that might also trigger it to go into quirks mode. While I may be wrong, I get the feeling that your problem is similar to this one Why is ie7 always in Quirks mode?

提交回复
热议问题