IE7 中的自动换行 (?) 问题

发布于 2024-09-15 08:22:58 字数 756 浏览 6 评论 0原文

我在当前项目上取得了很大进展,但粗略地说,现在我需要检查并修复 Internet Explorer 中出现的所有各种错误 - 我现在最大的问题之一是通过jquery 脚本未正确换行。

我尝试使用这个,但在 IE7 中不起作用:

.AuthorBlurb, .AuthorBlurb p { 
   white-space: pre-wrap;      /* CSS3 */   
   white-space: -moz-pre-wrap; /* Firefox */    
   white-space: -pre-wrap;     /* Opera < 7 */   
   white-space: -o-pre-wrap;   /* Opera 7 */ 
   word-wrap: break-word;      /* IE */   
 }

这是查看示例的链接: http://arcaspicio.squarespace.com/insights/2010/7/23/risk-management-for-border-security.html -- 当我查看时它,左侧的“贡献者”信息在 Internet Explorer 7 中未正确换行。我尝试了各种方法,但没有成功!

非常感谢任何帮助!

I am making great progress on a current project, but of coarse, now I need to go through and fix all the various bugs popping up in Internet Explorer - one of my biggest issues right now is that the text lines for a div added via a jquery script is not wrapping properly.

I tried using this, but didnt work in IE7:

.AuthorBlurb, .AuthorBlurb p { 
   white-space: pre-wrap;      /* CSS3 */   
   white-space: -moz-pre-wrap; /* Firefox */    
   white-space: -pre-wrap;     /* Opera < 7 */   
   white-space: -o-pre-wrap;   /* Opera 7 */ 
   word-wrap: break-word;      /* IE */   
 }

Here is a link to view an example: http://arcaspicio.squarespace.com/insights/2010/7/23/risk-management-for-border-security.html -- when i view it, the "Contributor" info on the left is not wrapping properly in Internet Explorer 7. I have tried all sorts of stuff with no success!

Any help is greatly appreciated!!

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

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

发布评论

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

评论(1

泪是无色的血 2024-09-22 08:22:58

IE 开发者工具栏 显示包含的

具有 white-space: nowrap; 设置,来自 .journal-entry-tag .posted-by.最有可能的是,IE 的空白设置覆盖了分词符,因此整个内容被视为一个大而长的单个单词,因此它会按原样从屏幕上消失。

IE Developer Toolbar is showing that the containing <p> has white-space: nowrap; set, coming from .journal-entry-tag .posted-by. Most likely IE has the white-space setting overriding the word break, so the whole thing is being treated as one big long single word, hence it running off the screen the way it is.

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