nikolatesfei 发表于 2015-12-11 17:23:21

加载多个视图问题

public function index()
        {
               
                $this->load->view('head');
                $this->load->view('index');
                $this->load->view('footer');
        }


一共加载了三个视图

head.php

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>



index.php

<div class="body">
        <form action="index">
                姓名: <input type="text"></br>
                电话: <input type="text"></br>
                <input type="submit" value="提交信息">
        </form>
</div>



footer.php

啊啊啊啊啊
</body>
22222
</html>


结果:
http://codeigniter.org.cn/forums/data/attachment/album/201512/11/172033e43z9o46207olk99.png
图中红色的方框里面放的是什么东西??
而且footer中222222字符串位置不对
查看源码看html是正确的http://codeigniter.org.cn/forums/data/attachment/album/201512/11/172033h020ei099dd901ot.png
这个是什么鬼??


nikolatesfei 发表于 2015-12-11 17:24:15

http://codeigniter.org.cn/forums/data/attachment/album/201512/11/172033h020ei099dd901ot.png源码中显示的正确
页: [1]
查看完整版本: 加载多个视图问题