基于布局模版生成页面

原创 2019-01-14 15:28:05 674
摘要:{extend name="basetwo" /}{block name="main"}<style type="text/css"> .main{ width: 1200px; height: 800px; text-align: center; line-height: 800px; margin: auto;

{extend name="basetwo" /}

{block name="main"}

<style type="text/css">

.main{

width: 1200px;

height: 800px;

text-align: center;

line-height: 800px;

margin: auto;

background: blue;

}

</style>

<div class="main" >

这是第一个页面

</div>

{/block}

{block name="header"}

 {include file="public/header" /}

{/block}


{block name="main"}{/block}


{block name="footer"}

{include file="public/footer" /}

{/block}

 public function demo6()

    {

        return $this->view->fetch();

    }


批改老师:查无此人批改时间:2019-01-14 16:34:16
老师总结:完成的不错。不过代码要缩进,给点注释,看着方便。继续加油。

发布手记

热门词条