引导实现的经典栅格布局效果实例【附演示源码】

  

本文实例讲述了引导实现的经典栅格布局效果。分享给大家供大家参考,具体如下:

  

先来看看效果图:

  

引导实现的经典栅格布局效果实例【附演示源码】“> </p>
  <p>具体代码如下(某管理系统的引导实现):</p>
  
  <pre类=   & lt; !DOCTYPE html公共”——//W3C XHTML 1.0//DTD过渡//EN”   “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”在   & lt; html xmlns=" http://www.w3.org/1999/xhtml "比;   & lt; head>   & lt;元http-equiv=? type”内容=" text/html;charset=gb2312 "/比;   & lt;元http-equiv=癤-UA-Compatible”内容=癐E=边缘”比;   & lt;元name=笆哟啊蹦谌?翱矶?设备宽度,初始=1”比;   & lt; title> XXXXX系统& lt;/title>   & lt;链接的href=" https://www.yisu.com/zixun/css/bootstrap.min.css " rel=巴獠縩ofollow”rel=把奖怼北?   & lt; !——(如果lt IE 9)比;   & lt;脚本src=" https://www.yisu.com/zixun/js/html5shiv.js "祝辞& lt;/script>   & lt;脚本src=" https://www.yisu.com/zixun/js/respond.min.js "祝辞& lt;/script>   & lt; ! [endif]——比;   & lt; style>   身体{   padding-top: 50 px;   padding-bottom: 40像素;   颜色:# 5 a5a5a;   }/*下面是左侧导航栏的代码*/.sidebar {   位置:固定;   上图:51 px;   底部:0;   左:0;   z - index: 1000;   显示:块;   填充:20 px;   overflow-x:隐藏;   overflow-y:汽车;   background - color: # ddd;   边境:1 px固体# eee;   }   .nav-sidebar {   margin-right: -21 px;   margin-bottom: 20 px;   margin-left: -20 px;   }   .nav-sidebar祝辞李比;一个{   padding-right: 20 px;   padding-left: 20 px;   }   .nav-sidebar祝辞.active祝辞一个,   .nav-sidebar祝辞.active祝辞徘徊,   .nav-sidebar祝辞.active祝辞答:{焦点   颜色:# fff;   background - color: # 428 bca;   }   .main {   填充:20 px;   }   .main .page-header {   margin-top: 0;   }   & lt;/style>   & lt;/head>   & lt; body>   & lt; !——下面是顶部导航栏的代码——比;   & lt;导航类=皀avbar navbar-default navbar-inverse navbar-fixed-top”角色=暗己健北?   & lt; div类=癱ontainer-fluid”比;   & lt; div类=皀avbar-header”比;   & lt;按钮类型=鞍磁ァ崩?皀avbar-toggle倒塌”data-toggle=氨览!?   数据目标=" # bs-example-navbar-collapse-1”比;   & lt;跨类=" sr-only "祝辞切换navigation   & lt;跨类=" icon-bar "祝辞& lt;/span>   & lt;跨类=" icon-bar "祝辞& lt;/span>   & lt;跨类=" icon-bar "祝辞& lt;/span>   & lt;/button>   & lt;一个类=" navbar-brand " href=" https://www.yisu.com/zixun/" rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”在某管理系统& lt;/a>   & lt;/div>   & lt; div类="崩溃navbar-collapse " id=癰s-example-navbar-collapse-1”比;   & lt; ul类=皀av navbar-nav”比;   & lt;李类="活跃"祝辞& lt; a href=" https://www.yisu.com/zixun/" rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”在首页& lt;/a> & lt;/li>   & lt;李类=跋吕北?   & lt; a href=" https://www.yisu.com/zixun/" rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”类=癲ropdown-toggle data-toggle”=跋吕痹诠δ? lt;跨类=巴炎址拧弊4? lt;/span> & lt;/a>   & lt; ul类==安说ァ北取跋吕说ァ弊饔?   & lt;李类=" dropdown-header "祝辞业务功能& lt;/li>   & lt; li> & lt; a href=" https://www.yisu.com/zixun/" rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”rel=巴獠縩ofollow”在信息建立& lt;/a> & lt;/li>   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

引导实现的经典栅格布局效果实例【附演示源码】