bootstrap響應式工具使用詳解,bootstrap使用詳解

來源:互聯網
上載者:User

bootstrap響應式工具使用詳解,bootstrap使用詳解

本文執行個體為大家分享了bootstrap響應式工具的具體代碼,供大家參考,具體內容如下

<!DOCTYPE html><html lang="en"><head>  <meta charset="UTF-8">  <title>響應式工具</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><!-- 響應式工具:針對不同的裝置展示或隱藏頁面的內容可見類:  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:本來是顯示內容的,當使用列印功能的時候會隱藏內容 -->

以上就是本文的全部內容,希望對大家的學習有所協助,也希望大家多多支援幫客之家。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.