bootstrap3 上中下页面布局

2019-10-14 15:23:53 浏览数 (1)

上:菜单

中:内容

下:内容

页脚

<head> </head>

代码语言:javascript复制
<body>
    #菜单
    <header role="banner">
        <nav role="navigation" class="navbar navbar-static-top navbar-default">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <a class="navbar-brand" href="index.html"><img src="img/logo.png" alt="Bootstrappin'" width="120"></a>
            </div>
            <div class="navbar-collapse collapse">
              <ul class="nav navbar-nav">
                <li class="active"><a href="index.html">
                    <span class="icon fa fa-home"></span> Home
                </a></li>
                <li><a href="#">
                    <span class="icon fa fa-desktop"></span> Portfolio
                </a></li>
                <li><a href="#">
                    <span class="icon fa fa-group"></span> Team
                </a></li>
                <li><a href="#">
                    <span class="icon fa fa-envelope"></span> Contact
                </a></li>
              </ul>
            </div><!--/.nav-collapse -->
          </div><!--/.container -->
        </nav>
    </header>
    #页面布局:分为两部分
    <main role="main">

        <div class="page-contents container">
        <div class="row">
            <div class="col-sm-4">
              
            </div>
            <div class="col-sm-4">
                
            </div>
            <div class="col-sm-4">
                
            </div>
        </div><!-- /.row -->
        </div><!-- /.container -->
    </main>
    #页脚
    <footer role="contentinfo">

    </footer>
</body>

0 人点赞