Bootstrap網頁基本框架

#20190722更新Bootstrap优站精选(使用Bootstap的網站案例集)

Image for post
Image for post
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>你的網站標題</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery文件。務必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="jumbotron text-center" style="margin-bottom:0">
<h1>我的第一個 Bootstrap 頁面</h1>
<p>重置瀏覽器窗口大小查看效果!</p>
</div>

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">網站名</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">主頁</a></li>
<li><a href="#">頁面 2</a></li>
<li><a href="#">頁面 3</a></li>
</ul>
</div>
</div>
</nav>

<div class="container">
<div class="row">
<div class="col-sm-4">
<h2>關於我</h2>
<h5>我的照片:</h5>
<div class="fakeimg">這邊插入圖像</div>
<p>關於我的介紹..</p>
<h3>鏈接</h3>
<p>描述文本。</p>
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="#">鏈接 1</a></li>
<li><a href="#">鏈接 2</a></li>
<li><a href="#">鏈接 3</a></li>
</ul>
<hr class="hidden-sm hidden-md hidden-lg">
</div>
<div class="col-sm-8">
<h2>標題</h2>
<h5>副標題</h5>
<div class="fakeimg">圖像</div>
<p>一些文本..</p>
<p>菜鳥教程,學的不僅是技術,更是夢想!!!菜鳥教程,學的不僅是技術,更是夢想!!!菜鳥教程,學的不僅是技術,更是夢想!!!</p>
<br>
<h2>標題</h2>
<h5>副標題</h5>
<div class="fakeimg">圖像</div>
<p>一些文本..</p>
<p>菜鳥教程,學的不僅是技術,更是夢想!!!菜鳥教程,學的不僅是技術,更是夢想!!!菜鳥教程,學的不僅是技術,更是夢想!!!</p>
</div>
</div>
</div>

<div class="jumbotron text-center" style="margin-bottom:0">
<p>底部內容</p>
</div>
</body>
</html>

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store