word wrap不工作在firefox,试过一切 [英] Word wrap not working in firefox, tried everything

查看:136
本文介绍了word wrap不工作在firefox,试过一切的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我非常困惑,我在这里搜索了几个小时,尝试了一切,是包括特定于FF的规则。

Hello I'm so utterly confused and I've searched around here for hours and tried everything, yes including rules specific for FF.

这是我现在的类

.paste_body
{
float: left;
width: 100%;
margin-top: -30px;
margin-bottom: -10px;
word-wrap: break-word;
}

在大家开始并给我建议之前,请花时间实时CSS编辑通过检查elm在fire fox真正正确地回答这个? 。因为我已经试过这一切

Before everyone goes on and starts giving me advice could you please take the time to real time CSS edit via inspect elm in fire fox to actually correctly answer this? because I've tried it all.

网址是:
skidpaste.org/QMGm3uOX

编辑:记住这部作品在其他浏览器

Keep in mind this works in every other browser.

推荐答案

这是因为Firefox不知道在哪里创建换行符,因为您的文本字符串中没有任何空格。虽然我在Chrome中尝试过你的页面,但它工作,肯定看起来不是很好...

This happens because Firefox doesn't know where to create a line break since you don't have any spaces in your text strings. Although I tried your page in Chrome, and it "works", it certainly doesn't look very good...

这里是一个链接如何处理这个在CSS中:

Here is a link on how to deal with this in CSS:

http://css-tricks.com/almanac/properties/w/word-break/

这篇关于word wrap不工作在firefox,试过一切的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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