How to make my website responsive

后端 未结 1 416
礼貌的吻别
礼貌的吻别 2021-01-25 12:47

I\'m new to bootstrap and I\'m having a hard time setting my media queries with the right breaking points and I feel like my website not scaling properly. My site looks perfect

相关标签:
1条回答
  • 2021-01-25 13:21

    Here are the standard Bootstrap v3.3.5 media queries and corresponds with the documentation that outlines the responsive classes that are available.

    /* Extra Small Devices, .visible-xs-* */
    @media (max-width: 767px) {}
    
    /* Small Devices, .visible-sm-* */
    @media (min-width: 768px) and (max-width: 991px) {}
    
    /* Medium Devices, .visible-md-* */
    @media (min-width: 992px) and (max-width: 1199px) {}
    
    /* Large Devices, .visible-lg-* */
    @media (min-width: 1200px) {}
    

    Media Queries by Device:

    /* Large desktops and laptops */
    @media (min-width: 1200px) {
    
    }
    
    /* Landscape tablets and medium desktops */
    @media (min-width: 992px) and (max-width: 1199px) {
    
    }
    
    /* Portrait tablets and small desktops */
    @media (min-width: 768px) and (max-width: 991px) {
    
    }
    
    /* Landscape phones and portrait tablets */
    @media (max-width: 767px) {
    
    }
    
    /* Portrait phones and smaller */
    @media (max-width: 480px) {
    
    }
    

    http://getbootstrap.com/css/#responsive-utilities

    0 讨论(0)
提交回复
热议问题