返回我自己创建的布......登陆

我自己创建的布局模板页面

龚一2019-06-14 15:18:4495
<!--这一段是 index.html-->
{include file="public::header" /}

            <!--导航-->
            {include file="public::nav" /}

            <!--主题内容-->
            <div class="row">

                <!--主题内容左边 会变动-->
                <div class="col-md-8">
                    <!--页头-->
                    <div class="page-header">
                        <h2>全部问答</h2>
                        <h3>我是首页</h3>
                    </div>
                </div>

                <!--主题内容右边 不变动即调用-->
                {include file="public::right" /}


{include file="public::footer" /}
<!--这是通用头部通用代码-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title|default="页面标题"}</title>



 {load href="/static/css/bootstrap.css" /}
    {load href="/static/js/jquery-3.4.0.min.js" /}
    {load href="/static/js/bootstrap.js" /}
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-12">
<!--这是底部的通用代码-->

</div>






</div>
</div>
</div>


</body>
</html>
<!--这是菜单通用代码-->
<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">{$siteName|default="社区问答"}</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">首页<span class="sr-only">(current)</span></a></li>
                <li><a href="#">PHP<span class="sr-only">(current)</span></a></li>
                <li><a href="#">JavaScript</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="请输入关键字">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>
                <li><a href="#">admin</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">操作 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">发布问题</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--这是通用右边菜单代码-->
<div class="col-md-4">
    <!--页头-->
    <div class="page-header">
        <h2>热门排行</h2>
    </div>

    <!--列表组-->
    <ul class="list-group">
        <li class="list-group-item">我是最新的问答</li>
        <li class="list-group-item">我是最新的问答</li>
        <li class="list-group-item">我是最新的问答</li>
        <li class="list-group-item">我是最新的问答</li>
        <li class="list-group-item">我是最新的问答</li>
        <li class="list-group-item">我是最新的问答</li>
    </ul>
</div>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送
  • PHP中文网