为了账号安全,请及时绑定邮箱和手机立即绑定

玩转Bootstrap(基础)

Bootstrap 4:
<nav class="navbar">
<a href="..." class="navbar-brand">...</a>
<button class="navbar-toggler" data-toggle="collapse" data-target="#ID">
<span class="navbar-toggler-icon"></span>
</button>
<div id="ID" class="navbar-collapse collapse">
<ul class="navbar-nav">...</ul>
</div>
</nav>
Bootstrap 4:
fixed-top:固定在顶部
fixed-bottom:固定在底部
Bootstrap 4:
<nav class="navbar">
<span class="navbar-text">...</span>
</nav>
Bootstrap 4:
<nav class="navbar">
<form class="form-inline">
<input type="text" class="form-control" />
<button type="submit" class="btn">...</button>
</form>
</nav>
Bootstrap 4:
<nav class="navbar">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a href="..." class="nav-link dropdown-toggle" data-toggle="dropdown">...</a>
<div class="dropdown-menu">
<a href="..." class="dropdown-item">...</a>
</div>
</li>
</ul>
</nav>
Bootstrap 4:
<nav class="navbar">
<a href="..." class="navbar-brand">...</a>
<ul class="navbar-nav">
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
</ul>
</nav>
Bootstrap 4:
<nav class="navbar navbar-expand-*">
<ul class="navbar-nav">
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
</ul>
</nav>
Bootstrap 4:
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="...">...</a>
</li>
<li class="breadcrumb-item">
<a href="...">...</a>
</li>
<li class="breadcrumb-item active">...</li>
</ol>
Bootstrap 4:
flex-column:垂直
下拉菜单分割线不是 divider 吗?
Bootstrap 4:
<ul class="nav">
<li class="nav-item">
<a href="..." class="nav-link active">...</a>
</li>
<li class="nav-item">
<a href="..." class="nav-link disabled">...</a>
</li>
</ul>
Bootstrap 4:
<ul class="nav">
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
<li class="nav-item">
<a href="..." class="nav-link">...</a>
</li>
</ul>
Bootstrap 4:
<h* class="dropdown-header">...</h*>
Bootstrap 4:
<div class="dropdown-divider"></div>
Bootstrap 4:
<div class="dropdown">
<button class="dropdown-toggle btn" data-toggle="dropdown">...</button>
<div class="dropdown-menu">
<a href="..." class="dropdown-item">...</a>
<a href="..." class="dropdown-item">...</a>
</div>
</div>
课程须知
本教程适合具有一定前端基础的人员,对HTML和CSS有一定的了解,对于定制Bootstrap的同学需要具备LESS和Sass基础知识。
老师告诉你能学到什么?
1、了解Bootstrap框架 2、如何使用Bootstrap制作Web页面或Web应用程序 3、如何定制个性化Bootstrap

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消