HTML / XML / CSS在Apache共享主机上显示问题 [英] HTML/XML/CSS display problems on Apache shared host

查看:66
本文介绍了HTML / XML / CSS在Apache共享主机上显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名具有科技背景的老年人,虽然是编程和样式表的新手。我通常能够对现有的设计进行HTML和CSS更改,但是我坚持这个并想要一些帮助。我正在使用Amaya作为HTML / XTML编辑器,我的页面符合XML标准。


网页在我的Windows XP,Service Pack 3,家用电脑上完美显示,使用Firefox 3或IE 7(我认为)。但是,当我将页面移动到我的1and1共享Apache Linux主机时,某些方面无法正常显示。模板作者正确显示的页面位于http://www.dcarter.co.uk/green_80.html。


当我上传到我的1and1主机时,用于提供的图像页面有些深度和颜色变化都没有显示出来。缺少深色垂直边框,缺少顶部和底部边框绿色/白色变化,并且缺少右侧边栏链接箭头。它们在颜色样式表中都未完全引用,但这似乎不是主要徽标图像显示的问题,我也尝试完整的路径引用无济于事。


有问题的图片是back.png,main.png,linkfoot.png,link_arrow.png和link_arrow_sel.png。我也尝试将它们转换为jpg,但这并没有帮助。


我的主索引页面的链接是www.balanced-life.biz。样式表位于www.balanced-life.biz/style/style.css和www.balanced-life.biz/style/colour.css(该模板来自英国)。图片都在style.css和colour.css中的样式文件夹中。


我希望有人可以帮助我,因为我已经尝试了过去我能想到的一切几个星期,互联网上没有找到任何引用Linux或1和1共享主机显示问题的东西。

I''m a senior citizen with a tech background, though a newbie to programming and style sheets. I''m usually able to make HTML and css changes to existing designs, but I''m stuck on this one and would like some help. I''m using Amaya as an HTML/XTML editor and my pages comply with the XML standards.

The web pages display perfectly on my Windows XP, service pack 3, home pc, with either Firefox 3 or IE 7 (I think). However, when I move the pages to my 1and1 shared Apache Linux host some aspects don''t display properly. A properly displayed page from the template author is at http://www.dcarter.co.uk/green_80.html.

When I upload to my 1and1 host the images used to give the pages some depth and color variation don''t show up. The dark vertical borders are missing, the top and bottom border green/white variation is missing, and the right sidebar link arrows are missing. They''re all incompletely referenced in the color style sheet, but that doesn''t seem to be the problem as the main logo image displays and I also tried complete path referencing to no avail.

The images in question are back.png, main.png, linkfoot.png, link_arrow.png, and link_arrow_sel.png. I also tried converting them to jpg but that didn''t help.

The link to my main index page is www.balanced-life.biz. The style sheets are at www.balanced-life.biz/style/style.css and www.balanced-life.biz/style/colour.css (the template is from the UK). The images are all in the style folder along with style.css and colour.css.

I hope someone can help me as I''ve tried everything I can think of for the past couple of weeks and haven''t found anything on the Internet referencing either Linux or 1and1 shared-host display problems.

推荐答案

我准备晚餐了不是在我的开发计算机上,但我可以快速记下,直到我回来。


XHTML1.1仅作为application / xml + xhtml提供,我敢打赌你正在以text / html的形式提供它。这可能与你的问题无关,但这是你需要解决的问题。


很多时候这些免费服务器在发送之前搞乱了标记,但我不是快速浏览后看到任何这样的东西。就像我说的那样,除非像David这样的其他人跳过这个,我会在晚餐时回来看看。
I''m getting ready for dinner and not on my dev computer but I can make a quick note till I get back.

XHTML1.1 is to be served as application/xml+xhtml only and I''d bet you are serving it as text/html. That probably has nothing to do with your problem but it is something you need to address.

Many times these free servers mess with the markup before they send it out but I don''t see any such thing after a quick glance. Like I said, unless someone else like David jumps on this, I''ll look when I get back from dinner.



我希望有人可以帮助我,因为我已经尝试了过去几周我能想到的一切,并且在互联网上找不到任何引用Linux或1和1共享主机显示问题的东西。
I hope someone can help me as I''ve tried everything I can think of for the past couple of weeks and haven''t found anything on the Internet referencing either Linux or 1 and1 shared-host display problems.



你有(x)html / css问题吗?

Do you have an (x)html/css question?


事实证明,我看错了链接。您正在寻找哪些浏览器搞砸了?第一行是xml序言。虽然这是正确的用法,IE将进入怪癖模式,而不是尝试像其他现代浏览器一样。我认为这在IE7中得到了修复。
As it turns out, I was looking at the wrong link. Which browser are you looking in where things are messed up? The very first line is the xml prologue. While this is proper usage, IE will go into quirks mode and not attempt to act like other modern browsers. I think that was fixed in IE7, though.


这篇关于HTML / XML / CSS在Apache共享主机上显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆