请观察我正在处理的以下网站,特别是联系页面:
http://anyonecanplayguitar.org/test/
用于包含页面文本内容的边界框在页面上拉得太远,主导航的一些边距在这个页面上变得棘手。 这是该网站上唯一的PHP文档,所以我认为这与它有关。 似乎有不必要的空白侵入页面,但我无法确定它的位置或来自哪里。
我通过本网站上的各种类似帖子进行的搜索无法帮助我理解或解决此问题。 我是PHP的新手,所以我不完全确定我是否理解它如何影响页面的HTML和CSS。 任何人都可以提供任何帮助非常感谢。
Please observe the following site I'm working on, specifically the Contact page:
http://anyonecanplayguitar.org/test/
The bounding box serving to contain the text content of the page gets stretched too far down the page and some of the margins of the main nav get screwy on this page alone. This is the only PHP document on the site, so I reckon that has something to do with it. It seems as if there's unnecessary whitespace intruding into the page, but I can't identify where it is or where it's coming from.
My searches through the various similar posts on this site did not help me understand or resolve this problem. I'm new to PHP, so I'm not entirely sure I understand yet how it can affect the HTML and CSS of a page. Any help anyone can provide is greatly appreciated.
最满意答案
如果我删除#content {heigth:100%; 它适用于联系页面。 但另一方面,它的高度也是100%。 但是你的联系页面并没有发送Doctype! 其他人发送html作为doctype。 因此,您的文档在联系页面上处理不同(我认为html4是默认的,html是html5)在php网站输出中添加文档类型,我认为它将起作用。
PHP无法打破任何CSS。 它只是! 生成HTML作为输出。 所以这是你的不同输出什么导致这个问题。
if i remove the #content { heigth: 100%; } it works for the contact page. But on the other sides it works also with the height 100%. But your contact page isnt sending a Doctype! The others send html as doctype. So your document is handled different on contact page (i think html4 is default and html is html5) Add a Document type at the php site output and it will work i think.
PHP can't break any css. It !just! produce HTML as output. So it is your different output whats causing this problem.
更多推荐
page,页面,PHP,site,电脑培训,计算机培训,IT培训"/> <meta name="description&
发布评论