带格式的预格式文本

带格式的预格式文本

本文介绍了带格式的预格式文本(无预标签)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

预先格式化的文字没有样式,而不必使用

预标签吗?帮助将不胜感激 - 谢谢。

解决方案



哦,没关系,它是白色空间:pre,但它呈现正常的文本

字体,不是一个等宽的。我只会使用pre标签





如果要保留格式,请使用white-space:pre。如果您想使用

monospace字体,请使用font-family:monospace。他们是两个

的独立房产。

我只会使用预标签




-

Harlan Messinger

从我的电子邮件地址中删除第一个点。

Veuillez?ter le premier point de mon adresse de courriel 。





这可能是也可能不是正确的解决方案,取决于你想要的原因

如何呈现文本(或预先格式化)。你有或多或少地b / b
排除了帮助你找出它是否是正确的解决方案的可能性,当你没有解释你是什么时真的在做什么和

怎么样(包括URL)。


-

Yucca,

Isn''t there a style for preformatted text, instead of having to use the
pre tags? Help would be appreciated--thanks.

解决方案


oh nevermind, it''s white-space:pre, but it renders the text in a normal
font, not a monospaced one. I''ll just use the pre tag instead




If you want formatting preserved, use white-space: pre. If you want a
monospace font to be used, use font-family: monospace. They''re two
independent properties.
I''ll just use the pre tag instead



--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ?ter le premier point de mon adresse de courriel.




That might or might not be the right solution, depending on why you want
to have text presented as such (or "preformatted"). You have more or less
excluded the possibility of helping you to find out whether or not it''s
the right solution, when you didn''t explain what you are really doing and
how (including the URL).

--
Yucca, http://www.cs.tut.fi/~jkorpela/


这篇关于带格式的预格式文本(无预标签)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 16:16