http://getbootstrap.com/
http://www.bootcss.com/css
boostrap是依賴於jQueryhtml
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width-device-width,initial-scale=1"> <title></title> <link rel="stylesheet" href="css/bootstrap.min.css"> <style> body{ padding-top: 50px; } .starter{ padding: 40px 15px; text-align: center; } </style> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <a href="#" class="navbar-brand">Project Name</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> </div> </nav> <div class="container"> <div class="starter"> <h1>Bootstrap starter template</h1> <p>Bootstrap starter template Bootstrap starter template Bootstrap starter template</p> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="css/bootstrap.min.css"> </head> <body> <div class="container"> <h1>標題1</h1> <h2>標題2</h2> <h3>標題3</h3> <h4>標題4<small>small標籤</small></h4> <p>testtesttesttesttest<abbr title="attribute">test</abbr>testtest</p> <p class="lead">testtesttesttesttesttesttesttest</p> <p>Hello World<mark>mark標籤</mark></p> <del>刪除</del> <p class="test-left">你好麼?</p> <p class="text-right">你好麼?</p> <p class="text-center">你好麼?</p> <p class="text-lowercase">abcdf</p> <p class="text-uppercase">abcdf</p> <p class="text-capitalize">abcdf</p> <address> <strong>Hello World</strong> 某市,某區 <br> 某街,某樓:1008 <attr title="Phone">P:8888 8888</attr> </address> <ul class="list-unstyled"> <!--無樣式--> <li>1</li> <li>2</li> <li>3</li> </ul> </div> </body> </html>