如何在html5设置中使用PHP
在我的HTML5页面中,文章部分有内容容器。其中一个页面是PHP,它正在破坏我的css。我也很难让重定向正常工作。在这里,更好的方法是什么。 这是这一页如何在html5设置中使用PHP,php,javascript,mysql,css,html,Php,Javascript,Mysql,Css,Html,在我的HTML5页面中,文章部分有内容容器。其中一个页面是PHP,它正在破坏我的css。我也很难让重定向正常工作。在这里,更好的方法是什么。 这是这一页 <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ACTS</title> <
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ACTS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link type="text/css" rel="apple-touch-icon-precomposed" href="../images/template/icon.png?v=1" />
<link type="text/css" rel="apple-touch-startup-image" href="../images/template/startup_landscape.jpg?v=1" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" />
<link type="text/css" rel="apple-touch-startup-image" href="../images/template/startup_portrait.jpg?v=1" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" />
<link type="text/css" rel="stylesheet" href="includes/acts.css?v=1" />
<script type="text/javascript" src="../includes/jquery-1.7.1.min.js"> </script>
<script type="text/javascript" src="../includes/Iscroll4/iscroll.js"></script>
<script type="text/javascript" src="../includes/acts.js?v=1"></script>
</head>
<body>
<div class="page">
<footer></footer>
<article>
<div class"content_container">
<div class="content_loading_container"></div>
</article>
<header></header>
<img class="banner_logo" src="images/template/logo.png?v=1" />
<img class="banner_acts" src="images/template/ACTS_banner.png?v=1" />
<img class="fire_clay" src="images/template/home_fire_clay.png?v=1" width="201" height="121" />
<img class="fire_blue" src="images/template/fire_blue.png?v=1" width="169" height="131" />
<img class="fire_black" src="images/template/fire_black.png?v=1" width="157" height="129" />
<img class="fire_orange" src="images/template/fire_orange.png?v=1" width="420" height="440" />
<nav>
<a data-file="home.php?v=1">Home</a>
<a data-file="Tracker.php?v=1">tracker</a>
<a data-file="reports.php?v=1">Gallery</a>
<a data-file="contact_us.html?v=1">Contact Us</a>
</nav>
</div>
</body>
</html>
行为
这缺少结束div标记。第一个div缺少一个等号
<article>
<div class"content_container">
<div class="content_loading_container"></div>
</article>
应该是这样的
<article>
<div class="content_container">
<div class="content_loading_container"></div>
</div>
</article>
这是我能看到的唯一剩下的语法错误
现在你说你在添加这些php页面,当你这样做的时候,网站就变成了垃圾。这是怎么回事?PHP不应该影响你的css。但是,无效的HTML将被删除。您粘贴的代码在顶部破坏了HTML—在doctype前面是一个
{
加上重复的
和
标记,在末尾是一个}
。所有这些都是无效的,将导致渲染问题。#这是WTF吗<代码>也不关闭tags@jcho360这是HTML6声明:对不起,在我发布最后一条评论之前,我的页面没有刷新。在我完成的页面上,我有正确的位置。png文件不再遵守css webkit转换规则。我确实检查了HTML,其他一切都正常工作了。这是一件事吗?可能是上面的语法问题导致CSS样式选择不正确吗?@Dave,这就是我认为的问题所在。简单地添加一些.php文件不会破坏CSS。问题不在于php文件,而在于CSS文件中仍然在寻找我之前设置的规则中的html。我的错。@jrad那么你认为你已经找到问题了?
<article>
<div class="content_container">
<div class="content_loading_container"></div>
</div>
</article>