我的顶部有一个空行,并且在HTMl代码里输出了一个“”这个东西,
然后审配元素得到的源码里面,<head>里的头部信息,跑到了,body容器里了。
我的模版页是这样的。
- PHP code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="{$description}" /> <meta name="keywords" content="{$keywords}" /> <title>{$title}</title> <link rel="stylesheet" type="text/css" href="Tpl/default/images/style.css" /> <link rel="stylesheet" type="text/css" href="Tpl/default/images/public.css" /> <link rel="icon" type="image/ico" href="static/favicon.ico" /> <link rel="shortcut icon" href="static/favicon.ico" /> <meta http-equiv="X-UA-Compatible" content="IE=7"> </head> [color=#FF0000]<body id="movie"> <!--总容器开始--> <div id="container">[/color] <!---头部开始---> <div class='m-bar'> <div class="l-w releative"> <div class="m-bar-crumb"> <span>当前位置:</span> <a href="http://www.dianxin.cn">首页</a> <span class="m-bar-crumb_sep">></span> <a href="http://www.dianxin.cn/html/yi/yingshi/">影视</a> <span class="m-bar-crumb_sep">></span> <span>{$list_name}</span> </div>
但是,我审配元素的时候,是这样的代码
- PHP code
<html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> [color=#FF9900]<body id="movie"> ? <meta content="text/html; charset=utf-8" http-equiv="Content-Type">[/color] <meta content="df" name="description"> <meta content="df" name="keywords"> <title>电视剧第1页-dsf电信导航www.dianxin.cn</title>
我的问题是,怎么让我的头部显示正常。
http://125.86.19.172:8080/feifei02/?s=vod-read-id-5796.html
还有那一个审配元素得到的源码,为啥不一样呢。
------解决方案--------------------
Hi xiachao2008,I am not sure what would cause of this error,but I suggestion that you can close the tag shown in the code area below:
- HTML code
<meta http-equiv="X-UA-Compatible" content="IE=7">
------解决方案--------------------
- HTML code
<meta http-equiv="X-UA-Compatible" content="IE=7" />
------解决方案--------------------
congratulations :)