namespace app\admin\controller;
use think\Controller;
class Index extends Controller
{
public function index()
{
return $this->fetch();
}
}
<html lang="en">
<head>
<me
<ti
</head>
<st
#ok{
width: 90px;
height: 90px;
line-height: 90px;
text-align: center;
background-color: $00fff;
margin: 0 auto;
}
</st
<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>
<me
<ti
</head>
<st
#ok{
width: 90px;
height: 90px;
line-height: 90px;
text-align: center;
background-color: $00fff;
margin: 0 auto;
}
</st
<body>
<div id="ok">
我的第一个测试页面
</div>
</body>
</html>
这个标签的前面加了<
变成<<!DOCTYPE html>
最佳答案
