使用Firefox的表兼容性问题(在IE中正常工作) [英] Table compatability trouble with Firefox (works ok in IE)

查看:50
本文介绍了使用Firefox的表兼容性问题(在IE中正常工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨组,

我在网站上遇到麻烦我正在为老板工作。通常我会编写自己的html代码,但是我无法获得正确的外观。对于这个网站,我决定使用我在网上找到的免费模板。它使用表格,我真的不擅长(我习惯于框架)。我终于让它在IE上看起来没问题了,但它在Firefox上看起来还不是很正常。我没有在Mac上试过它,因为我不认识一个人!无论如何,有人可以看看,也许给我一些指导? Firefox显示所有这些额外的行,这样我在IE或Dreamweaver中看不到。


在网站准备发布之前,我只能将它放在我自己的个人服务器上,所以你可以在这里找到它:http://www.agabengalcats.com/dental/


谢谢,

Mel

Hi group,
I''m having trouble with a website I''m working on for my boss. Normally I code my own html, but I was having trouble getting the right "look" for this site, so I decided to use a free template that I found on line. It uses tables, which I am really no good at (I''m used to frames). I finally got it to look ok on IE, but it still doesn''t quite look right on Firefox. I haven''t tried it on a Mac, because I don''t know anyone who has one! Anyways, could someone please take a look and perhaps give me some guidence? Firefox shows all these extra lines and such that I don''t see in IE or in Dreamweaver.

Until the site is ready for publication, I just have it on my own personal server, so you can find it here: http://www.agabengalcats.com/dental/

Thanks,
Mel

推荐答案


我终于让它在IE上看起来没问题了,但它在Firefox上看起来还不是很正常。
I finally got it to look ok on IE, but it still doesn''t quite look right on Firefox.



在旧的,有缺陷的非标准IE浏览器上看一下页面看起来不错,但不是现代的标准Firefox,我不会告诉任何人。

如果没有正确的doctype作为第一行,你将永远不会让IE尝试像现代浏览器那样执行。 IE处于怪癖模式。使用这个:

<!DOCTYPE html PUBLIC" - // W3C // DTD HTML 4.01 // EN"

" http://www.w3 .org / TR / html4 / strict.dtd">


然后,验证您的html 以修复那些错误,然后验证并修复你的bazillion css错误。

Getting a page to look ok on old, buggy non-standard IE but not modern, standard Firefox is nothing I would tell anyone.

You will never get IE to attempt to perform like a modern browser without a proper doctype as your first line. IE is in quirks mode. Use this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Then, Validate your html for those errors to fix and then validate and fix your bazillion css errors.


还有其他人可以给我一些更有用的建议,而不仅仅是批评吗?我不是桌子或CSS的专家;正如我之前所说,此代码来自免费的在线模板。我从来没有真正用过很多桌子,也没有用过css。我只是想让这个网站与我的老板尽可能多的浏览器兼容。
Can anyone else offer me some more useful advice, rather than just criticism? I am not an expert with tables or css; as I stated previously, this code was from a free online template. I''ve never really worked much with tables and haven''t worked at all with css. I''m just trying to get this website compatible with as many browsers as possible for my boss.


Mel,

我认为你不应该把它当作批评。您已经有了一些CSS,但是您正在使用一些弃用的标签,例如< center> Some Content< / content>如果你愿意,我会使用css发布一个类似的模板,它将在两个浏览器中验证和执行。如果您查看此论坛中50%的帖子,您会看到我们建议更改doctype,这是非常重要的。
Mel,
I don''t think you should take that as criticism. You already have some CSS, but you are using some deprecated tags like <center>Some Content</content> if you want I will post a similiar template using css that will validate and perform in both browsers. If you look at 50% of the posts in this forum you will see we suggest changing the doctype it is that important.


这篇关于使用Firefox的表兼容性问题(在IE中正常工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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