Guest User

Untitled

a guest
Aug 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # CSS
  2.  
  3. ## IE
  4. ### IE9 and down
  5. Conditional sheet in html file:
  6. ```html
  7. <!--[if IE]>
  8. <link rel="stylesheet" type="text/css" href="ie.css" />
  9. <![endif]-->
  10. ```
  11. ### IE10 and up
  12. ```css
  13. @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  14. /* IE10+ CSS */
  15. }
  16. ```
  17.  
  18. ## Edge
  19. ### Edge 12-15
  20. ```css
  21. @supports (-ms-accelerator:true) {
  22. /* IE Edge 12+ CSS */
  23. }
  24. ```
  25. ### Edge 16
  26. ```css
  27. @supports (-ms-ime-align:auto) {
  28. /* IE Edge 16+ CSS */
  29. }
  30. ```
  31.  
  32. # JS
  33.  
  34. ## Edge
  35. ```javascript
  36. typeof CSS !== 'undefined' && CSS.supports('(-ms-ime-align:auto)')
  37. ```
  38.  
  39. ## IE
  40. ```javascript
  41. document.documentMode
  42. ```
Add Comment
Please, Sign In to add comment