最新文章專題視頻專題問(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í)百科 - 正文

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

來(lái)源:懂視網(wǎng) 責(zé)編:小OO 時(shí)間:2020-11-27 20:10:04
文檔

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

【相關(guān)視頻推薦:Bootstrap教程】。實(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=";/>。
推薦度:
導(dǎo)讀【相關(guān)視頻推薦:Bootstrap教程】。實(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=";/>。
柵格系統(tǒng)柵格系統(tǒng)英文為"grid systems",也有人翻譯為"網(wǎng)格系統(tǒng)",運(yùn)用固定的格子設(shè)計(jì)版面布局,其風(fēng)格工整簡(jiǎn)潔,在二戰(zhàn)后大受歡迎,已成為今日出版物設(shè)計(jì)的主流風(fēng)格之一。本文主要為大家分享一篇響應(yīng)式框架Bootstrap柵格系統(tǒng)的實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧,希望能幫助到大家。

【相關(guān)視頻推薦:Bootstrap教程】

實(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>
 <p class="container-fluid">           //fluid表示用 百分比
 <p class="row">               //row 行
 <p class="top-styl col-md-12">        //col-md-12 每行桌面占12列
 <p class="row">
 <p class=" col-md-offset-1 col-md-9">   //col-md-offset-1 列偏移1列
 <p class="row">
 <p class="col-md-3 col-xs-4">
 <p class="img-styl"></p>
 </p>
 <p class="col-md-3 ">
 <p 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="" />
 </p>
 </p>
 <p 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>
 </p>
 <p class="col-md-2">
 <p class="imgs-styl">
 <img src="imges/sina.gif">
 </p>
 <p 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>
 </p>
 </p>


 </p>
 </p>
 </p>
 </p>
 </p>

 <p class="row">
 <p class="visible-md"><h1>當(dāng)前為桌面顯示</h1></p>   //visible默認(rèn)占滿整行 
 <p class="visible-sm"><h1>當(dāng)前為平面顯示</h1></p>
 <p class="visible-xs"><h1>當(dāng)前為手機(jī)顯示</h1></p>
 </p>
 </p>
</body>
</html>

效果顯示圖:

聲明:本網(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

文檔

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

【相關(guān)視頻推薦:Bootstrap教程】。實(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=";/>。
推薦度:
標(biāo)簽: 實(shí)例 框架 柵格
  • 熱門(mén)焦點(diǎn)

最新推薦

猜你喜歡

熱門(mén)推薦

專題
Top