我有一个样式问题需要或包含功能在PHP中。每当我包含一个php文件时,即使这个文件完全是空的,所有的页面都会向下一行,从而导致页面顺序的破坏。包含文件后我检查了源代码,看起来代码中没有任何变化。我真的很困惑,这怎么可能。我讨厌这个网站的东西。php包括废墟页面布局
这是一些代码。问题是这些包括顶部。通过浏览器看到
<!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">
<?php
include('database.php');
include('login.php');
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Design - Free CSS Templates</title>
<meta name="keywords" content="free css templates, web design, 2-column, html css" />
<meta name="description" content="Web Design is a 2-column website template (HTML/CSS) provided by templatemo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<!--////// CHOOSE ONE OF THE 3 PIROBOX STYLES \\\\\\\-->
<link href="css_pirobox/white/style.css" media="screen" title="shadow" rel="stylesheet" type="text/css" />
<!--<link href="css_pirobox/white/style.css" media="screen" title="white" rel="stylesheet" type="text/css" />
<link href="css_pirobox/black/style.css" media="screen" title="black" rel="stylesheet" type="text/css" />-->
<!--////// END \\\\\\\-->
</head>
<body>
<div id="templatemo_body_wrapper">
<div id="templatemo_wrapper">
<div id="tempaltemo_header">
<span id="header_icon"></span>
<div id="header_content">
<div id="site_title">
<a href="http://www.templatemo.com" target="_parent"><img src="images/templatemo_logo.png" alt="LOGO" /></a> </div>
<p>This is a free CSS website layout from templatemo.com website. Feel free to edit and apply for your websites. Duis vitae velit sed dui malesuad mollis aliquet ligula.</p>
<a href="#" class="detail float_r">Detail</a>
</div>
</div> <!-- end of header -->
模板的源代码:http://www.text-upload.com/read,4081536104820
我编辑的代码(没有被编辑除了包括部分):http://www.text-upload.com/read,4081542128884
请显示您的源代码。然后,我们将能够提供帮助。 – Hope4You
'database.php'和'login.php'中的内容 - 任何echo'd的空格或不包含在PHP标记中的HTML /空白行? – BenOfTheNorth
一般抱怨,如_“我讨厌这个网站的东西”_和_“为什么低估我?”_通常只会导致更多的低价。此外,根据[常见问题](http://stackoverflow.com/faq),您有望成为专业或发烧友程序员。 – Sparky