div布局之面向对象
2024-10-19 11:49:13
- 栗子之导航条(navbar)
http://www.runoob.com/try/try2.php?filename=bootstrap-using-glyphicons-navbar
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<a href="#" class="navbar-brand">Project name</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active">
<a href="#">
<span class="glyphicon glyphicon-home"></span> Home
</a>
</li>
<li >
<a href="#shop">
<span class="glyphicon glyphicon-shopping-cart"></span> Shop
</a>
</li>
<li>
<a href="#support">
<span class="glyphicon glyphicon-headphones"></span> Support
</a>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
2.模块化思想 (主要是div的使用)
3. div 之间的嵌套
4. 以最小单位为对象的面向盒子对象思想 (对其设置属性:padding,margin- border 。。。。。。)
最新文章
- Android UX &; UI 最佳实践: 设计有效的导航
- MapReduce介绍
- [游戏学习28] MFC 时钟
- spring中的Log4jConfigListener作用和webapp.root的设置
- eclipse中安装tomcat插件
- aspose输出表格
- asp.net的CascadingDropDown取值和赋值
- Contest20140709 testA 树型DP
- 斯坦福大学IOS开发课程笔记(第七课第一部分)
- js中substr,substring,indexOf,lastIndexOf等的用法
- [刷题]Codeforces 794C - Naming Company
- CSS3-loading动画(五)
- CNCC2017中的深度学习与跨媒体智能
- ~psd面试 求最长回文序列 DP求解
- Python_生成大量随机信息
- 动态路由协议(RIP)
- 1、redis 基础
- HDU6280 From Tree to Graph
- spring的orm模块
- Appuim学习路-Appuim介绍