I want to target IE7 and IE8 with W3C-compliant CSS. Sometimes fixing CSS for one version does not fix for the other. How can I achieve this?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- Is TWebBrowser dependant on IE version?
For a more complete list as of 2015:
IE 6
or
IE 7
or
IE 6 and 7
or
or
IE 6, 7 and 8
IE 8
or
IE 8 Standards Mode Only
IE 8,9 and 10
IE 9 only
IE 9 and above
IE 9 and 10
IE 10 only
IE 10 and above
or
IE 11 (and above..)
Javascript alternatives
Modernizr
User agent selection
The Javascript:
Adds (e.g) the below to the
html
element:Allowing very targetted CSS selectors, e.g.:
Footnote
If possible, avoid browser targeting. Identify and fix any issue(s) you identify. Support progressive enhancement and graceful degradation. With that in mind, this is an 'ideal world' scenario not always obtainable in a production environment, as such- the above should help provide some good options.
Attribution / Essential Reading