css / html:空白断点修复,现在不能代码罚款? [英] css/html: white space break fix and now cant code fine?

查看:107
本文介绍了css / html:空白断点修复,现在不能代码罚款?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,所以我的问题是,如果你输入一个没有空格的长句子,例如eeeeeeeeeeeeeeeeeeeeeeee,它会打破自己,但现在我需要开始键入一些丑陋的不破解的代码。

Yes, so I got the problem that if you type a long sentence with no space e.g eeeeeeeeeeeeeeeeeeeeeeee, it will break itself, but then now I would need to start typing some ugly non-breaking coding.

示例:
http://jsfiddle.net/r3CFJ/

我需要在一个句子中包含所有内容,以免打破本身。在这里查看没有一句话的结果:
http://jsfiddle.net/ r3CFJ / 1 /

I need to have everything in one sentence in order not to make it break itself. Check here to see the result of not having everything in one sentence: http://jsfiddle.net/r3CFJ/1/

如何解决这个问题任何解决方案?

How can I fix this please any solutions?? as my further coding will get very ugly and not readable?

推荐答案

由于CSS,我得到这个间距,我不是确定为什么你添加 pre 类型格式化,然后想知道为什么它显示确切你做什么(多行,等)。

You are getting this spacing because of the CSS, I am not sure why you add the pre type formatting and then wonder why it shows 'exactly' what you do (multiple lines, etc).

如果你删除CSS,它看起来只是一行。

If you remove the CSS it looks just fine on 1 line.

看: http://jsfiddle.net/r3CFJ/10/

这篇关于css / html:空白断点修复,现在不能代码罚款?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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