|
本帖最后由 Cheney 于 2011-10-19 10:23 编辑
head.php------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FrundVC</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>application/css/init.source.css" />
<script src="<?php echo base_url()?>application/js/base/sea.js"></script>
</head>
<body>
<div id="head"></div>
<div id="main">
index.php-------------------- -------------------- --------------------
<?php $this->load->view('head.php'); ?>
。。。
</div>
<div id="foot"></div>
</body></html>
结果index.php输出的HTML居然是:
<html>
<head>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FrundVC</title>
<link rel="stylesheet" type="text/css" href="http://localhost:8021/fundvc/application/css/init.source.css">
<script src="http://localhost:8021/fundvc/application/js/base/sea.js"></script>
<div id="head"></div>
<div id="main">
。。。
</div>
<div id="foot"></div>
</body></html>
# 把head.php去掉,内容直接放在index.php里就不会出现这个问题了~~~
|
|