模板会自动添加一个<

浏览:330 发布日期:2017/07/06 分类:求助交流
<?php
namespace app\admin\controller;
use think\Controller;
class Index extends Controller
{
public function index()
{

return $this->fetch();
}
}
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<style type="text/css">
#ok{
width: 90px;
height: 90px;
line-height: 90px;
text-align: center;
background-color: $00fff;
margin: 0 auto;
}
</style>
<body>
<div id="ok">
我的第一个测试页面
</div>
</body>
</html>
以上是我的代码,为什么末班前面会自动添加<
就像下面缓存输出的代码
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:51:"C:\wamp\www/application/index\view\index\index.html";i:1499342338;}*/ ?>
<<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<style type="text/css">
#ok{
width: 90px;
height: 90px;
line-height: 90px;
text-align: center;
background-color: $00fff;
margin: 0 auto;
}
</style>
<body>
<div id="ok">
我的第一个测试页面
</div>
</body>
</html>
这个标签的前面加了<
变成<<!DOCTYPE html>
最佳答案
评论( 相关
后面还有条评论,点击查看>>