Issue with push/pulling my layout

前端 未结 1 2055
旧巷少年郎
旧巷少年郎 2021-01-25 16:47

I have a simple layout, with a sidebar (col-3) and content (col-9)

[3] [9]

I\'m trying to get it so at xs side my layout is

[C         


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

    If you think "mobile-first", and use the push/pull for the larger screen widths, it should work like this..

    <div class="col-sm-9 col-sm-push-3" id="mainContent">
        content
    </div>
    <div class="col-sm-3 col-sm-pull-9" id="globalSidebar">
        sidebar
    </div>
    

    Demo

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