之前學習Bootstrap時練手用的。分享給你們。css
注意Bootstrap相關文件的路徑,Bootstrap依賴jQuery,須要先加載jQueryhtml
Github代碼連接:連接 (若是有點小用,求個小star(。•ˇ‸ˇ•。))jquery
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script> <script src="../bs/js/bootstrap.min.js"></script> <link href="../bs/css/bootstrap.css" rel="stylesheet"> <link href="../bs/css/mystyle.css" rel="stylesheet"> <title>我的簡歷</title> </head> <body> <nav class="navbar navbar-default"> <div class="container"> <button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#leadBar" aria-expanded="false" aria-controls="navbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="collapse navbar-collapse" id="leadBar"> <ul class="navbar nav navbar-nav"> <li><a href="site.html" class="glyphicon glyphicon-home"></a></li> <li><a href="#info">基本信息</a></li> <li><a href="">職業技能</a></li> <li><a href="">項目展現</a></li> <li><a href="">請聯繫我</a></li> </ul> </div> </div> </nav> <div class="page-header"> <h1>我的簡歷</h1> </div> <div class="divContent container"> <div class="row"> <h2 class="lead">基本信息</h2> <div class="col-sm-3"> <blockquote> <h2>某某</h2> <footer>XX工程師</footer> </blockquote> <div class="row text-center"> <img src="./img/zmz.jpg" alt="boy" width="150px" class="img-responsive img-circle img-thumbnail"> </div> <div class="row text-center"> <h3>我的介紹</h3> </div> <div class="row"> <span>滴滴答答滴滴答答滴滴答答滴滴答 答滴滴答答滴滴答答滴滴答答滴滴答答滴滴答答滴滴答答滴滴答答滴滴答答滴滴答答</span> </div> <div class="table-responsive"> <table class="table table-bordered table-striped table-hover table-condensed"> <tr> <td>姓名</td> <td>YYY</td> <td>年齡</td> <td>18</td> </tr> <tr> <td>學校</td> <td>XX大學</td> <td>學歷</td> <td>本科</td> </tr> <tr> <td>專業</td> <td>軟件工程</td> <td>學制</td> <td>全日制</td> </tr> </table> </div> </div> <div class="col-sm-9"> <!-- 大屏幕 --> <div class="jumbotron"> <h2>我的榮譽</h2> <hr> <p2>得到******************************************</p2> <h2>個人空間</h2> <hr> <div class="row"> <div class="col-sm-3"> <a href=""><button class="btn-primary">我的博客</button></a> </div> <div class="col-sm-3"> <a href=""><button class="btn-primary">我的博客園</button></a> </div> <div class="col-sm-3"> <a href=""><button class="btn-primary">個人github</button></a> </div> </div> <h2>我的技能</h2> <hr> <p>1.***************</p> <p>2.***************</p> <p>3.***************</p> <p>4.***************</p> <p>5.***************</p> </div> </div> </div> <div class="row"> <h2 id="skill" class="lead">職業技能</h2> <p> <span class="label label-success">JavaScript</span> <span class="label label-success">Vue.js</span> <!-- <span class="label label-success">ssh</span> --> </p> <div class="progress"> <div class="progress-bar progress-bar-success progress-bar-striped active" style="width: 80%;"> <span>熟悉</span> </div> </div> <p> <span class="label label-success">Node.js</span> <span class="label label-success">PHP</span> <!-- <span class="label label-success">ssh</span> --> </p> <div class="progress"> <div class="progress-bar progress-bar-danger progress-bar-striped active" style="width: 75%;"> <span>熟悉</span> </div> </div> <p> <span class="label label-info">html/css</span> </p> <div class="progress"> <div class="progress-bar progress-bar-info progress-bar-striped active" style="width: 70%;"> <span>熟悉</span> </div> </div> <p> <span class="label label-warning">數據結構/算法</span> </p> <div class="progress"> <div class="progress-bar progress-bar-warning progress-bar-striped active" style="width: 79%;"> <span>熟悉</span> </div> </div> </div> <div class="row"> <h2 class="lead">項目展現</h2> <div class="col-sm-7"> <div id="" class="myCarousel carousel slide"> <ol class="carousel-indicators"> <li data-target=".myCarousel" data-slide-to="0" class="active"></li> <li data-target=".myCarousel" data-slide-to="1"></li> <li data-target=".myCarousel" data-slide-to="2"></li> <li data-target=".myCarousel" data-slide-to="3"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="./img/img1.jpg" style="height: 406px;width: 650px" alt="第一張" class="img-responsive"> <div class="carousel-caption">項目 1</div> </div> <div class="item"> <img src="./img/img2.jpg" style="height: 406px;width: 650px" alt="第二張" class="img-responsive"> <div class="carousel-caption">項目 2</div> </div> <div class="item"> <img src="./img/img3.jpg" style="height: 406px;width: 650px" alt="第三張" class="img-responsive"> <div class="carousel-caption">項目 3</div> </div> <div class="item"> <img src="./img/img4.jpg" style="height: 406px;width: 650px" alt="第四張" class="img-responsive"> <div class="carousel-caption">項目 4</div> </div> <!--左右翻頁--> <a href=".myCarousel" data-slide="prev" class="carousel-control left"> <span class="glyphicon glyphicon-chevron-left"/> </a> <a href=".myCarousel" data-slide="next" class="carousel-control right"> <span class="glyphicon glyphicon-chevron-right"/> </a> </div> </div> </div> <div class="col-sm-5"> <div id="" class="myCarousel carousel slide"> <ol class="carousel-indicators"> <li data-target=".myCarousel" data-slide-to="0" class="active"></li> <li data-target=".myCarousel" data-slide-to="1"></li> <li data-target=".myCarousel" data-slide-to="2"></li> <li data-target=".myCarousel" data-slide-to="3"></li> </ol> <div class="carousel-inner"> <div class="item active"> <p>項目說明</p> <p>項目說明</p> <p>項目說明</p> <p>項目說明</p> <p>項目說明</p> <div class="carousel-caption">項目 1</div> </div> <div class="item"> <p>項目說明</p> <p>項目說明</p> <p>項目說明</p> <p>項目說明</p> <div class="carousel-caption">項目 2</div> </div> <div class="item"> <p>項目說明</p> <div class="carousel-caption">項目 3</div> </div> <div class="item"> <p>項目說明</p> <div class="carousel-caption">項目 4</div> </div> <!--左右翻頁--> <a href=".myCarousel" data-slide="prev" class="carousel-control left"> <span class="glyphicon glyphicon-chevron-left"/> </a> <a href=".myCarousel" data-slide="next" class="carousel-control right"> <span class="glyphicon glyphicon-chevron-right"/> </a> </div> </div> </div> </div> <div class="row"> <h2 class="lead">請聯繫我</h2> <div class="panel panel-default"> <div class="panel-heading">若是你感興趣</div> <div class="panel-body"> <form action="" method="post"> <label class="control-label" for="email">Email</label> <input type="email" class="form-control" id="email" /> <br/> <div class="btn-group pull-right"> <button type="submit" class="btn btn-success">請聯繫我</button> <button type="reset" class="btn btn-danger">重置</button> </div> <div class="clearfix"></div> </form> </div> </div> </div> </div> </body> </html>
/* * Globals */ body { font-family: Georgia, "Times New Roman", Times, serif; color: #555; } h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { margin-top: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: normal; color: #333; } /* * Override Bootstrap's default container. */ @media (min-width: 1200px) { .container { width: 970px; } } /* * Masthead for nav */ .blog-masthead { background-color: #428bca; -webkit-box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1); box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1); } /* Nav links */ .blog-nav-item { position: relative; display: inline-block; padding: 10px; font-weight: 500; color: #cdddeb; } .blog-nav-item:hover, .blog-nav-item:focus { color: #fff; text-decoration: none; } /* Active state gets a caret at the bottom */ .blog-nav .active { color: #fff; } .blog-nav .active:after { position: absolute; bottom: 0; left: 50%; width: 0; height: 0; margin-left: -5px; vertical-align: middle; content: " "; border-right: 5px solid transparent; border-bottom: 5px solid; border-left: 5px solid transparent; } /* * Blog name and description */ .blog-header { padding-top: 20px; padding-bottom: 20px; } .blog-title { margin-top: 30px; margin-bottom: 0; font-size: 60px; font-weight: normal; } .blog-description { font-size: 20px; color: #999; } /* * Main column and sidebar layout */ .blog-main { font-size: 18px; line-height: 1.5; } /* Sidebar modules for boxing content */ .sidebar-module { padding: 15px; margin: 0 -15px 15px; } .sidebar-module-inset { padding: 15px; background-color: #f5f5f5; border-radius: 4px; } .sidebar-module-inset p:last-child, .sidebar-module-inset ul:last-child, .sidebar-module-inset ol:last-child { margin-bottom: 0; } /* Pagination */ .pager { margin-bottom: 60px; text-align: left; } .pager>li>a { width: 140px; padding: 10px 20px; text-align: center; border-radius: 30px; } /* * Blog posts */ .blog-post { margin-bottom: 60px; } .blog-post-title { margin-bottom: 5px; font-size: 40px; } .blog-post-meta { margin-bottom: 20px; color: #999; } /* * Footer */ .blog-footer { padding: 40px 0; color: #999; text-align: center; background-color: #f9f9f9; border-top: 1px solid #e5e5e5; } .blog-footer p:last-child { margin-bottom: 0; }
header, footer, nav, div, section, aside, article, p { border: 1px dotted #f0f0f0; } .divContent { min-height: 350px; }