我有这个
HTML代码:
<div class="row fluid"> <div class="col-md-3 clearfix"> <img src="img"> <div class="img-text"> Tekst fdskfjsdghdfn ufghdg ufdhs gdfksjhg jfdksgbfjdsk gfd jgbdfjhg dfkjhg fidughdf kjvhdf ugdfh </div> </div> <div class="col-md-3 clearfix"> <img src="img"> <div class="img-text"> Tekst fdskfjsdghdfn ufghdg ufdhs gdfksjhg jfdksgbfjdsk gfd jgbdfjhg dfkjhg fidughdf kjvhdf ugdfh </div> </div> <div class="col-md-3 clearfix"> <img src="img"> <div class="img-text"> Tekst fdskfjsdghdfn ufghdg ufdhs gdfksjhg jfdksgbfjdsk gfd jgbdfjhg dfkjhg fidughdf kjvhdf ugdfh </div> </div> <div class="col-md-3 clearfix"> <img src="img"> <div class="img-text"> Tekst fdskfjsdghdfn ufghdg ufdhs gdfksjhg jfdksgbfjdsk gfd jgbdfjhg dfkjhg fidughdf kjvhdf ugdfh </div> </div> </div>
除了手机外,我希望这些列能够逐行转到新行.那可能吗?
谢谢
解决方法
你可以使用这样的东西:
<div class="row"> <div class="col-xs-12 col-sm-6 col-md-3> Content </div> <div class="col-xs-12 col-sm-6 col-md-3> Content </div> <div class="col-xs-12 col-sm-6 col-md-3> Content </div> <div class="col-xs-12 col-sm-6 col-md-3> Content </div> </div>