我试图通过php include()合并两个html头 - 将一个php文件(其中包含可重用性的标题)合并到另一个。代码有效,但结果如下:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./css/custom-theme/jquery-ui-1.10.3.custom.min.css">
<link href='http://fonts.googleapis.com/css?family=Noto+Sans' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="./js/jquery191.js" ></script>
<script type="text/javascript" src="./js/jqueryui1103.js" ></script>
</head><html>
<head>
<title>Add Employee Form</title>
<link rel="stylesheet" type="text/css" href="./css/addform.css">
<script type="text/javascript" src="./js/talentform.js" ></script>
<script type="text/javascript" src="./js/form_submission.js" ></script>
</head>
我认为这与标准不符。有没有办法在不违反标准的情况下将这两个头合二为一?顺便说一句,我正在使用CodeIgniter 2 Framework,如果它有帮助的话。谢谢!