带格式的预格式文本(无预标签) [英] preformatted text with styles (no pre tags)

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

问题描述

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

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

解决方案

TheKeith写道:

是不是有一个预格式文本的样式,而不是必须使用
预标记?帮助将不胜感激 - 谢谢。



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

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


TheKeith< no@spam.com>写道:

TheKeith写道:

没有预先格式化文本的样式,而不必使用
预标签?帮助将不胜感激 - 谢谢。

哦,没关系,它是白色空间:pre,但它呈现的文本是普通的
字体,而不是等宽字体。




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

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

的独立房产。

我只会使用预标签




-

Harlan Messinger

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

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


TheKeith< no@spam.com>写道:

我只会使用pre标签




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

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

怎么样(包括URL)。


-

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


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

解决方案

TheKeith wrote:

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


TheKeith <no@spam.com> wrote:

TheKeith wrote:

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.



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.


TheKeith <no@spam.com> wrote:

I''ll just use the pre tag instead



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/


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

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