Firefox 2.0 中的自动换行

发布于 2024-08-03 04:42:48 字数 262 浏览 1 评论 0原文

自动换行在 FF 2.0 中不起作用。我知道FF 2.0以上支持这种自动换行。但我想知道是否有任何替代方案可以解决 FF2.0 的这个问题。它适用于所有 IE 版本。

.wrapgridtext 
{
    word-break : break-all;
    max-width : 0;
    word-wrap: break-word; 
}

此类应用于表格中宽度为 130px 的“td”。

任何帮助将不胜感激。

Word-wrap is not working in FF 2.0. I know FF above 2.0 supports this word-wrap. But I want to know is there any alternatives do fix this issue for FF2.0. It works fine with all IE versions.

.wrapgridtext 
{
    word-break : break-all;
    max-width : 0;
    word-wrap: break-word; 
}

this class is applied to the "td" in a table where it has width as 130px.

Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

终遇你 2024-08-10 04:42:48

看看我的旧帖子

http://archivist.incutio.com/ viewlist/css-discuss/55677

看看这是否有帮助。

Take a look at an old post of mine at

http://archivist.incutio.com/viewlist/css-discuss/55677

and see if this helps at all.

深陷 2024-08-10 04:42:48

您可以尝试 overflow:hidden;

这不会破坏单词,但可以防止长行破坏您的网站布局。

You can try overflow: hidden;

That won't break the word, but it will keep the long line from breaking your site layout.

咽泪装欢 2024-08-10 04:42:48

FF2 不支持自动换行,甚至 CSS2.1 规范也不支持自动换行。这是一个 CSS3 属性。

word-wrap is NOT supported in FF2 and isn't even in the CSS2.1 spec. It's a CSS3 property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文