我只想問是否可以根據設備的屏幕顯示/隱藏課程? 我正在使用引導程序默認媒體查詢。我有這個默認設置:如何基於Bootstrap媒體查詢斷點來隱藏/刪除類?
/* Bootstrap Media Query Breakpoints
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {...}
/* Extra Small Devices, Phones equivalent to class xs */
@media only screen and (min-width : 480px) {...}
/* Small Devices, Tablets equivalent to class sm */
@media only screen and (min-width : 768px) {...}
/* Medium Devices, Desktops equivalent to class md */
@media only screen and (min-width : 992px) {...}
/* Large Devices, Wide Screens equivalent to class lg */
@media only screen and (min-width : 1200px) {...}
我有這樣一個DIV:
<div class="col-xs-12 ol-sm-6 col-md-6">
<div class="pull-right">
<ul class="header_links">
<li>
<a href="#">Member</a>
</li>
<li>
<a href="#">Login</a>
</li>
<li>
<a href="#">Member Registration</a>
</li>
<li>
<a href="#">Help</a>
</li>
<li>
<a href="#">Cart: 0</a>
</li>
</ul>
<ul class="social_media_links">
<li>
<a href="#">
<i class="fa fa-facebook-square"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-tumblr-square"></i>
</a>
</li>
</ul>
</div>
<div class="clearfix"></div>
</div>
我要的是,如果媒體查詢是在COL-XS-#類拉-right將被隱藏或刪除。 它可能在引導?
理解引導,最好的辦法是打開unminified CSS。在.pull-left,.pull-right和所有實用程序類(響應實用程序除外)的情況下,它們適用於所有視口大小。如果你將.pull-right和hidden-xs結合在同一個元素上
Christina 2014-11-25 03:41:09