国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例

2019-11-19 14:42:19
字體:
供稿:網(wǎng)友

實(shí)例如下:

<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css" rel="external nofollow" /> <script language="JavaScript" src="js/jquery-3.js"></script> <style type="text/css">  *{   top: 0px;   padding: 0px;   text-decoration: none;   list-style-type: none;  }  .top-styl{   height: 50px;   border: 1px solid red;   background-color: #000000;  }  .img-styl{   width: 174px;   height: 50px;   background: url("imges/logo.png")no-repeat 0px 3px;   background-size: contain;   float: left;  }  .sousuo-styl{   width: 187px;   float: left;  }  .top-search-input{   width: 150px;   padding: 0 5px;   height: 30px;   border: 0;   background: #363636;   float: left;   color: #ccc;  }  .top-search-submit{   width: 30px;   height: 30px;   border: 0;   background: green url("imges/zoom.gif")center center no-repeat;   float: left;   cursor: pointer;          //光標(biāo)指針  }  .dao-styll{   float: left;   font-size: 16px;   width: 329px;   margin-left: 33px;   margin-top: 11px;  }  .dao-styll li{   float: left;   position: relative;      //相對(duì)定位   text-align: center;   padding: 0 7px;  }  .dao-styll >li:hover{   background-color: #999;  }  .dao-styll >li >a{   color: #FFF;   width: 100%;   height: 34px;   text-decoration: none;    //取消下劃線  }  .dz-styl{   float: right;   margin: -19px -9px 6px 21px;  }  .imgs-styl{   padding: 11px 0px 0px 114px;   float: right;   margin: 0px -98px -3px 8px;  }  .green-styl{   color: green;  }  .zc-styl{   color: white;  }  a{   text-decoration: none;  } </style></head><body> <div class="container-fluid">           //fluid表示用 百分比  <div class="row">               //row 行   <div class="top-styl col-md-12">        //col-md-12 每行桌面占12列    <div class="row">     <div class=" col-md-offset-1 col-md-9">   //col-md-offset-1 列偏移1列      <div class="row">      <div class="col-md-3 col-xs-4">       <div class="img-styl"></div>      </div>       <div class="col-md-3 ">        <div class="sousuo-styl" style="padding-left: 7px; margin: 8px auto;">         <input class="top-search-input" value="" type="text"><input          class="top-search-submit" type="submit" value="" />        </div>       </div>       <div class="col-md-4 hidden-xs" style="padding: 0px">        <ul class="dao-styll">         <li class=""><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >風(fēng)格</a>         </li>         <li class=""><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >造型師</a></li>         <li class=""><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >眾分享</a>         </li>         <li class=""><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >我的美麗衣櫥</a></li>        </ul>       </div>       <div class="col-md-2">        <div class="imgs-styl">         <img src="imges/sina.gif">        </div>        <div class="dz-styl">         <span><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="green-styl">登錄</a> | </span><span>         <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="zc-styl">注冊(cè)</a></span>        </div>       </div>      </div>     </div>    </div>   </div>  </div> <div class="row">    <div class="visible-md"><h1>當(dāng)前為桌面顯示</h1></div>   //visible默認(rèn)占滿整行     <div class="visible-sm"><h1>當(dāng)前為平面顯示</h1></div>    <div class="visible-xs"><h1>當(dāng)前為手機(jī)顯示</h1></div>  </div> </div></body></html>

效果顯示圖:

 

以上這篇響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例就是小編分享給大家的全部內(nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持武林網(wǎng)。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 尉犁县| 宝丰县| 玉溪市| 镶黄旗| 梁平县| 阿拉善盟| 法库县| 昭觉县| 五河县| 乌拉特后旗| 金秀| 永吉县| 桂东县| 扶绥县| 罗平县| 个旧市| 宣威市| 洪泽县| 朔州市| 秭归县| 昭通市| 武乡县| 赞皇县| 大英县| 平湖市| 凤山县| 南皮县| 新乡市| 新郑市| 灵台县| 安达市| 长岛县| 吉林市| 湟中县| 渭南市| 湘潭县| 泽州县| 阿荣旗| 淮阳县| 雅江县| 体育|