How to use media queries in css

后端 未结 3 1129
闹比i
闹比i 2020-12-06 03:28

I am very keen to use media queries in my CSS but i am confused to how to use it. I have stand

my queries requirement is

if screen width is 100 to 480 then d

3条回答
  •  失恋的感觉
    2020-12-06 04:11

    The basic relies on using this kind of queries:

    @media (min-width: 768px) and (max-width: 979px) {
    /*here goes the exact changes you need to make in order to make 
    your site pretty on this range.*/
    }
    

    Please remember that when using responsive web design you should use percentages when possible also em for fonts.

    media queries are now available for IE. take a look in http://caniuse.com/#feat=css-mediaqueries when you can use them. A polyfil I been using with good results is response.js

提交回复
热议问题