Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

media query js

<script>
if (window.matchMedia("(min-width: 600px)").matches) {
  /* La largeur minimum de l'affichage est 600 px inclus */
} else {
  /* L'affichage est inférieur à 600px de large */
}
</script>
Source by www.alsacreations.com #
 
PREVIOUS NEXT
Tagged: #media #query #js
ADD COMMENT
Topic
Name
9+9 =