Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CSS
- ## IE
- ### IE9 and down
- Conditional sheet in html file:
- ```html
- <!--[if IE]>
- <link rel="stylesheet" type="text/css" href="ie.css" />
- <![endif]-->
- ```
- ### IE10 and up
- ```css
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
- /* IE10+ CSS */
- }
- ```
- ## Edge
- ### Edge 12-15
- ```css
- @supports (-ms-accelerator:true) {
- /* IE Edge 12+ CSS */
- }
- ```
- ### Edge 16
- ```css
- @supports (-ms-ime-align:auto) {
- /* IE Edge 16+ CSS */
- }
- ```
- # JS
- ## Edge
- ```javascript
- typeof CSS !== 'undefined' && CSS.supports('(-ms-ime-align:auto)')
- ```
- ## IE
- ```javascript
- document.documentMode
- ```
Add Comment
Please, Sign In to add comment