Twitter's Bootstrap 3 grid, changing breakpoint and removing padding

前端 未结 3 611
花落未央
花落未央 2020-11-29 03:51

I m trying to move to the new boostrap 3 grid and I m facing some difficulties.

  1. How to have the grid to stack below 480px but not between 480px and 768px?
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 04:07

    To implement any changes for tiny to small devices you will need to include your own media queries to add your own additional breakpoints.

    For example:

    @media (max-width: 480px) { 
       .no-float {
           display:block;
           float:none;
           padding:0;
       }
    }
    

    I am not quite sure what you are trying to achieve with this but this is how you would apply styles where the screen width is below 480px.

提交回复
热议问题