仅在PC上的Firefox 3中文本换行不一致 [英] Text wrapping inconsistent in Firefox 3 on PC only

查看:99
本文介绍了仅在PC上的Firefox 3中文本换行不一致的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在Firefox 3.0中经常遇到的问题.似乎当我不断刷新时,它有时会包裹,有时却没有.当它没有自动换行时,我可以调整窗口大小,并且sIFR'd元素将捕捉到其正确的大小.我需要根据容器的宽度来包装我的元素.

This is a recurring problem I have in Firefox 3.0. It seems when I keep refreshing sometimes it wraps, sometimes it doesn't. When it doesn't wrap, I can adjust the window size and the sIFR'd element will snap to its correct size. I need my elements to wrap on load, based on the width of it's container.

我拥有sIFR 3.0的最新每晚构建".

I have the most current 'nightly build' of sIFR 3.0.

我想对H2标签进行SIFR处理. h2标签包含在div中,并且都具有设置的宽度.

I want to sIFR a h2 tag. The h2 tag is enclosed in a div, and both have set widths.

<div class="recipe-title">
   <h2>This is a recipe title</h2>
</div>

在sifr.js文件中,设置了以下参数:

In my sifr.js file, I have the following parameters set:

forceWidth = true; 
fitExactly = true; 
preventWrap = false;

我的.sifr.CSS文件如下所示:

My .sifr.CSS file looks like this:

@media screen {
  .sIFR-active .recipe-title h2 { width:455px; font-size:16px; text-transform:uppercase; }
}

我的普通CSS文件如下所示:

And my normal CSS file looks like this:

.recipe-title, .recipe-title h2 { width:400px; }

除PC上的FF3之外,其他所有功能似乎都可以在所有其他浏览器中使用.这是一个已知的错误吗?

Everything else seems to work in all other browsers except for FF3 on PC only. Is this a known bug?

推荐答案

对于普通用户...请确保为对象或图像设置div容器的宽度和高度.如果未设置这些值,Firefox将在其后包裹所有文本.

For the common user... make sure that you set your width and height of the div container for your object or image. Firefox will wrap any text following if these values are not set.

这篇关于仅在PC上的Firefox 3中文本换行不一致的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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