答案 0 :(得分:1)
如果您的元素已知宽度和高度,您可以使用方向实现:rtl和display:内联块用于元素和@media查询,在较小的屏幕上具有绝对定位,参见演示: http://jsbin.com/wufuwibuhe/edit?html,css,output
#container{
direction:rtl;
text-align:left;
}
element{
width:250px;
border: 1px solid #000;
height:100px;
text-align:center;
display:inline-block;
direction:ltr; // restore direction inside element
}
@media (max-width:530px){
#container{
height:210px;
position:relative;
}
element{
position:absolute;
top:0;
left:0
}
element:first-of-type{
top:auto;
bottom: 0;
}
}

<h1>Resize me!</h1>
<div id="container">
<element first-of-type>1</element>
<element>2</element>
</div>
&#13;
答案 1 :(得分:1)
您可以像这样使用display flex和order:
<div class="container">
<div>element 1</div>
<div>element 2</div>
</div>
.container{
display:flex;
flex-direction: column;
}
.container div:nth-child(1){
order:2;
}
.container div:nth-child(2){
order:1;
}
//change the 1024px for you desktop size target
@media (min-width:1024px){
.container div:nth-child(1){
order:1;
}
.container div:nth-child(2){
order:2;
}
}
希望有所帮助
答案 2 :(得分:0)
<div class="row">
<div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
<div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
</div>
此处描述了您的具体问题: http://getbootstrap.com/css/#grid-column-ordering