首页 >web前端 >html教程 >分享一篇html入门的实例代码

分享一篇html入门的实例代码

零下一度
零下一度原创
2017-06-24 11:56:021569浏览
<!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>

以上是分享一篇html入门的实例代码的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn