搜索 | 用户支持

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

详细了解

website beancarclub.org.uk loads OK on Safari but 2 of the pages have overlapping text /photos on firefox

  • 2 个回答
  • 2 人有此问题
  • 5 次查看
  • 最后回复者为 cor-el

more options

We have tried altering the offending pages and keeping text and pictures in separate boxes but they just come out with overlaps in different places. Site appears fine, then when published the faults appear.

We have tried altering the offending pages and keeping text and pictures in separate boxes but they just come out with overlaps in different places. Site appears fine, then when published the faults appear.

被采纳的解决方案

Hi,

I can see this occurring on http://beancarclub.org.uk/Short-Bean-Car-History/ . I believe what's happening here is that Chrome and Firefox are calculating the line height of the paragraphs differently. The space between the lines is set to be 16.9px; Firefox rounds that up to 17px, while Chrome rounds it down to 16px. This causes the paragraphs to be shorter in Chrome, meaning that they don't overlap with the images below.

There are several things you could do to fix this, although if you're using some kind of software to generate the site I'm not sure how many of these are possible:

  1. Change the images so that they always appear after the paragraph, rather than a certain distance from the top of the page (which is what they are doing right now).
  2. Pick an integer (either 16.0 or 17.0px) for the line-height, so that the paragraphs are the same height in both browsers.

Hope that helps!

定位到答案原位置 👍 1

所有回复 (2)

more options

选择的解决方案

Hi,

I can see this occurring on http://beancarclub.org.uk/Short-Bean-Car-History/ . I believe what's happening here is that Chrome and Firefox are calculating the line height of the paragraphs differently. The space between the lines is set to be 16.9px; Firefox rounds that up to 17px, while Chrome rounds it down to 16px. This causes the paragraphs to be shorter in Chrome, meaning that they don't overlap with the images below.

There are several things you could do to fix this, although if you're using some kind of software to generate the site I'm not sure how many of these are possible:

  1. Change the images so that they always appear after the paragraph, rather than a certain distance from the top of the page (which is what they are doing right now).
  2. Pick an integer (either 16.0 or 17.0px) for the line-height, so that the paragraphs are the same height in both browsers.

Hope that helps!

more options

I need to switch to zoom text only and slightly zoom out (95%) to make the text appear properly. You need to avoid specifying the top and left position for each element exactly when text is involved since you can't predict what font a visitor or browser is using. All DIV containers are in some random order: the Bean text is #wb_element_instance46 and the image under it is #wb_element_instance30. It is always best to let the browser calculate the height of text containers.