最新文章專題視頻專題問(wèn)答1問(wèn)答10問(wèn)答100問(wèn)答1000問(wèn)答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問(wèn)答文章1 問(wèn)答文章501 問(wèn)答文章1001 問(wèn)答文章1501 問(wèn)答文章2001 問(wèn)答文章2501 問(wèn)答文章3001 問(wèn)答文章3501 問(wèn)答文章4001 問(wèn)答文章4501 問(wèn)答文章5001 問(wèn)答文章5501 問(wèn)答文章6001 問(wèn)答文章6501 問(wèn)答文章7001 問(wèn)答文章7501 問(wèn)答文章8001 問(wèn)答文章8501 問(wèn)答文章9001 問(wèn)答文章9501
當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

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

來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 22:23:31
文檔

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

響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例:實(shí)例如下: <!DOCTYPE html> <html> <head lang=en> <meta charset=UTF-8> <title></title> <meta name=viewport content=width=device-width, i
推薦度:
導(dǎo)讀響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例:實(shí)例如下: <!DOCTYPE html> <html> <head lang=en> <meta charset=UTF-8> <title></title> <meta name=viewport content=width=device-width, i

實(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í)例就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

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

響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例:實(shí)例如下: <!DOCTYPE html> <html> <head lang=en> <meta charset=UTF-8> <title></title> <meta name=viewport content=width=device-width, i
推薦度:
標(biāo)簽: 案例 實(shí)例 框架
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top