CSS和纯文本 [英] CSS and plain text

查看:81
本文介绍了CSS和纯文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用CSS格式化普通 html文档中的文本。通过

plain我的意思是< por< h#tags没有包含的文字。


有没有办法控制这些东西是如何呈现的?


tia

解决方案

Michael Bulatovich写道:


有没有办法使用CSS格式化普通? html文档中的文本。通过

plain我指的是< por< h#tags所包含的文本。



如果您使用的是严格的DOCTYPE,则不应该有任何文本...

some .. element。 Transitional会让你侥幸成功,但实际上这是不好的做法。如果你这样做,你将失去语义。


有没有办法控制这些东西是如何呈现的?



如果您描述情况,可以给出一些建议。例如

"把它放在< div ...中有一个示例页面?


-

-bts

-Motorcycles无视重力;汽车只是吮吸。




Michael Bulatovich写道:


有没有使用CSS格式化普通的方法html文档中的文本。



CSS可以格式化它,但它们的格式都是一样的。

CSS的范围(大体上)选择在这些元素的边界。


有没有办法控制这个东西被渲染?



查看使用< spanelement,或阅读CSS上的任何教程


Michael Bulatovich写道:


有没有办法使用CSS格式化普通? html文档中的文本。通过

plain我的意思是< por< h#tags没有包含的文字。


有没有办法控制这些东西是如何呈现的?



我主要使用body元素来改变文本的页面宽度,因为所有

你的文字肯定应该在那里!


Is there a way to use CSS to format "plain" text in an html document. By
plain I mean text which is not contained by <por <h#tags.

Is there no way to control how this stuff is rendered?

tia

解决方案

Michael Bulatovich wrote:

Is there a way to use CSS to format "plain" text in an html document. By
plain I mean text which is not contained by <por <h#tags.

If you are using a Strict DOCTYPE, there should be no text outside of ..
some .. element. Transitional will let you get away with it, but it is
poor practice to do so. You lose semantic meaning if you do that.

Is there no way to control how this stuff is rendered?

If you describe the circumstance, some advice could be given. Such as
"put it in a <div..." Got a sample page?

--
-bts
-Motorcycles defy gravity; cars just suck.



Michael Bulatovich wrote:

Is there a way to use CSS to format "plain" text in an html document.

CSS can format it, but it''ll all be formatted the same. The scope of
CSS is selected (by and large) at the boundaries of these elements.

Is there no way to control how this stuff is rendered?

Look into using the <spanelement, or read any tutorial on CSS


Michael Bulatovich wrote:

Is there a way to use CSS to format "plain" text in an html document. By
plain I mean text which is not contained by <por <h#tags.

Is there no way to control how this stuff is rendered?

I mostly use the body element to change page wide things for text as all
your text should definitely be in there!


这篇关于CSS和纯文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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