IE7 中的自动换行 (?) 问题
我在当前项目上取得了很大进展,但粗略地说,现在我需要检查并修复 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IE 开发者工具栏 显示包含的
具有
white-space: nowrap;
设置,来自.journal-entry-tag .posted-by.最有可能的是,IE 的空白设置覆盖了分词符,因此整个内容被视为一个大而长的单个单词,因此它会按原样从屏幕上消失。
IE Developer Toolbar is showing that the containing
<p>
haswhite-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.