为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Table alignment is ignored in Firefox, Ok in IE

  • 6 个回答
  • 2 人有此问题
  • 9 次查看
  • 最后回复者为 the-edmeister

more options

Our web pages display correctly in IE but not in Firefox, which is my browser of choice.

The main table, containing the substance of the pages, is aligned right to allow the menu to float clear down the left hand side of the page. In Firefox, the table alignment seems to be ignored and justifies across the whole page width. This is the same for all S130 Gallery pages. Somewhat annoying.

Our web pages display correctly in IE but not in Firefox, which is my browser of choice. The main table, containing the substance of the pages, is aligned right to allow the menu to float clear down the left hand side of the page. In Firefox, the table alignment seems to be ignored and justifies across the whole page width. This is the same for all S130 Gallery pages. Somewhat annoying.

所有回复 (6)

more options

I did not try in IE to compare but is the attached as intended ?

That is in Firefox with the floating table at the left not spread across the page. If that is correct maybe it is something to do with your setup, such as an interfering extension or the javascript settings.

more options

The table is set to 775 pixels wide and aligned right to allow the menu to float down the left hand side, clear of the text and images.

See Attached

The code seems to read correctly but, as I said, it works ok in IE but not in Firefox or in Chrome, I have just done a test with chrome.

If it is java script or an extension then you have something in your setup that is the same as mine. Looking at the attachement, it shows the problem exactly - The meat should on the right, like the header.

more options

You will probably be able to get better advice if you try the mozillazine forum


edit, as the-edmeister points out the code is not W3C compliant, I should have checked that straight away with http://validator.w3.org/unicorn/

由John99于修改

more options

That's the problem with creating pages that don't meet W3C standards. They are rendered in the Quirks Mode which puts Firefox in the position of guessing how you want your content to be displayed. Three different viewer's and three differing "guesses" by Firefox, although John99's view is closer to my view, the slight difference is probably due to screen resolution differences between our PC's.

Compliance Mode works wonders for narrowing rendering differences like that. And floating table sizes work best for users who have smaller screens or who may run the browser window narrower than full width, as I do. Small widescreen monitor 1320 px width, which I normally run at 1024px wide.

http://en.wikipedia.org/wiki/Quirks_Mode

由the-edmeister于修改

more options

Sorry. Now you have completely lost me, I'm afraid I didn't understand a word of the technical stuff. It could have been quantum physics or something alien.

I do not know quite where the floating table comes in. The table in question is a fixed width, fixed position table which is supposed to stay hard over to the right - But doesn't in Firefox.

If you mean the floating menu on the left, it doesn't seem to have any bearing on the matter. I have disabled and the same thing occurs. In IE the FIXED table stays to the right and does not spread accross the window. In Firefox the fixed table, 775 pixels wide, spreads across the entire window, regardless of the size and algnment code, below.

  Confused.
more options

Sorry, hard to avoid getting a little technical. You need a strong keel or the hull won't have the structural rigidity to weather heavy storms or large waves.

First you need a Document Type Definition (DTD) 0r Doctype statement.
http://en.wikipedia.org/wiki/Doctype

Then you need to do validation check with the W3C Markup Validation Service, and fix the problems it comes up with.

The goal is to fix your code that browsers can render your code properly and not have to guess what your intention was - like this:
http://validator.w3.org/check?uri=http://www.rovcom.co.uk/s130_ww2_schnellboot_Slipping.htm