Rumah >hujung hadapan web >html tutorial >分享一篇html入门的实例代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Bootstrap</title> <link rel="stylesheet" href="bootstrap.min.css?1.1.11"> <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> <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> </div> </nav> <div class="container"> <div class="starter"> <h1> Bootstrap starter template </h1> <p class="lead">欢迎访问</p> </div> </div> </body> </html>
Atas ialah kandungan terperinci 分享一篇html入门的实例代码. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!