当前位置:Gxlcms > html代码 > 分享一篇html入门的实例代码

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

时间:2021-07-01 10:21:17 帮助过:26人阅读

<!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入门的实例代码的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行