我的应用程序效果很好,但是当我在Chrome中打开Inspector时会出现奇怪的问题。有这样的话:
//where is my DOCTYPE?
<html>
#shadow-root // what the f**k is this?
<shadow>...</shadow> // with this inside?
<head>
<style></style>
</head>
<body>
<ul></ul> //what?!
//all of the tags from <head>... ;O
但是我的header.php模板看起来像这样:
<!DOCTYPE html>
<html>
<head>
<title><?php echo SITETITLE; ?></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php echo DIR; ?>app/templates/default/css/main.css">
</head>
<body>
<header><h1 ..... etc
我尝试删除多个标签,将编码更改为UTF-8而不使用BOM,但仍然存在同样的问题。它是简单的MVC故障吗?我该怎么办?
PPM&gt;页面来源:
<ul> //?????
</ul><!DOCTYPE html>
<html>
<head>
<title>Testowy Blog</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="/framework/app/templates/default/css/main.css">
</head>
<body>
<header id="header">
<h1>...
答案 0 :(得分:0)