欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

bootstrap響應(yīng)式工具使用詳解

 更新時間:2017年11月29日 09:04:14   作者:看五分鐘佩奇的小姑姑  
這篇文章主要介紹了bootstrap響應(yīng)式工具使用的相關(guān)資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下

本文實例為大家分享了bootstrap響應(yīng)式工具的具體代碼,供大家參考,具體內(nèi)容如下

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>響應(yīng)式工具</title>
  <link rel="stylesheet" type="text/css" href="../CSS/bootstrap.css" rel="external nofollow" >
  <script src="../JS/jquery-3.2.1.min.js"></script>
  <script src="../JS/bootstrap.js"></script>

  <style type="text/css">
    .tips1{width: 30px;height: 300px;background: black}
    .tips2{width: 30px;height: 200px;background: #ddd}
  </style>

</head>
<body style="height: 800px;">

  <!-- <div class="container">
    <div class="row">
       只有在lg分辨率以上的才會顯示,否則是不會顯示的 
      <div class="col-lg-6 visible-lg-inline-block">col-lg-6</div>
      <div class="hidden-sm hidden-xs">aaaaaaa</div>
    </div>
  </div>
 -->

  <div class="container-fluid">
    <div class="row"><!-- 消除最右邊的空隙 -->
      <div class="tips1 pull-right visible-lg-block"></div>
      <!-- pull-right:右浮動 pull-left:左浮動-->
      <div class="tips2 hidden-lg affix"></div><!-- affix固定定位 -->
    </div>
  </div>


</body>
</html>
<!-- 
響應(yīng)式工具:針對不同的設(shè)備展示或隱藏頁面的內(nèi)容
可見類:
  visible-[lg/md/sm/xs]-[inline/block/inline-block]
隱藏類:
  hidden-[lg/md/sm/xs]
浮動:[pull/push]-[right/left]
固定定位:affix
打印類:
  visible-print-[block/inline]:只有在使用打印功能的時候才會顯示
  hidden-print:本來是顯示內(nèi)容的,當(dāng)使用打印功能的時候會隱藏內(nèi)容
 -->

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論