Is there a way in Bootstrap to “split” a column on small screens?

后端 未结 1 1151
半阙折子戏
半阙折子戏 2020-12-17 20:32

I\'m using Bootstrap 3. On large screens I want to have a sidebar on the left and the maincontent on the right. On small screens I want to have important blocks of the sideb

1条回答
  •  温柔的废话
    2020-12-17 20:33

    You could do something like this:

    Bootply Demo

    HTML:

    I want to be above the main content on small screens!

    Main content

    Lorem ipsum dolor sit amet

    Lorem ipsum dolor sit amet

    Lorem ipsum dolor sit amet

    Lorem ipsum dolor sit amet

    Lorem ipsum dolor sit amet

    I want to be below the main content on small screens!

    CSS:

    @media (min-width: 768px) {
      .col-sm-pull-right {
          float: right;
      }
    }
    .lower {
      clear: left;
    }
    

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