Bootstrap 中有没有办法“拆分"?小屏幕上的专栏? [英] Is there a way in Bootstrap to "split" a column on small screens?
问题描述
我正在使用 Bootstrap 3.在大屏幕上,我希望左侧有一个侧边栏,右侧有主要内容.在小屏幕上,我希望侧边栏的重要块在顶部,然后是主要内容,然后是侧边栏的不太重要的块.有没有办法做到这一点?
这是一个显示问题的 JS Bin:http://jsbin.com/wibucopi/1/ 及以下是当前代码(但是,它会在小屏幕的顶部显示所有侧边栏内容).
<div class="row"><div class="col-sm-3"><div class="upper" style="background:red"><h3>我想成为<b>上面</b>小屏幕上的主要内容!</h3><div class="lower" style="background:green"><h3>我想成为<b>下面</b>小屏幕上的主要内容!</h3>
<div class="col-sm-9"><h1>主要内容</h1><p>Lorem ipsum dolor sat amet</p>