html中的空行和段落 [英] Blank lines and paragraph break in html

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

问题描述

你好,


我有一个简单的问题。在我的html文档中,每当我在html源代码中有一个空行时,我想创建一个新的

段落。使用< p>

和< / pevery time有点麻烦(我想以LaTeX

的方式)。有可能吗?


感谢您的时间,

Yogi

Hi there,

I have a quick question. In my html document, I want to make a new
paragraph whenever I have a blank line in the html source. Using <p>
and </pevery time is kind of cumbersome (I want to do it the LaTeX
way). Is it possible at all?

Thanks for your time,
Yogi

推荐答案

Yogi写道:
Yogi wrote:

我有一个简单的问题。在我的html文档中,每当我在html源代码中有一个空行时,我想创建一个新的

段落。使用< p>

和< / pevery time有点麻烦(我想以LaTeX

的方式)。有可能吗?
I have a quick question. In my html document, I want to make a new
paragraph whenever I have a blank line in the html source. Using <p>
and </pevery time is kind of cumbersome (I want to do it the LaTeX
way). Is it possible at all?



< pis标记段落的语义正确方法。你不需要改变它。


你可以随心所欲地使用CSS来设计它。


p {margin-bottom:4em; }


玩数字。


对不起,什么是LaTeX方式?


-

-bts

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

<pis the semantically correct way to mark up a paragraph. You
shouldn''t want to change that.

You can style it however you like with CSS.

p { margin-bottom: 4em; }

Play with the numbers.

Sorry, what is the LaTeX way?

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


Yogi写道:
Yogi wrote:

你好,


我有一个简单的问题。在我的html文档中,每当我在html源代码中有一个空行时,我想创建一个新的

段落。使用< p>

和< / pevery time有点麻烦(我想以LaTeX

的方式)。有可能吗?


感谢您的时间,

Yogi
Hi there,

I have a quick question. In my html document, I want to make a new
paragraph whenever I have a blank line in the html source. Using <p>
and </pevery time is kind of cumbersome (I want to do it the LaTeX
way). Is it possible at all?

Thanks for your time,
Yogi



HTML看台用于超文本标记语言。要成为HTML,它必须具有

标记(例如,< p>)。


在大多数情况下,结束标记< / pis可选的。当我声明< p的样式(例如,通过类属性)时,我只使用结束标记



我不想继续内容我不想宣布

新款。


-


David E. Ross

< http://www.rossde.com/> ;.


别问为什么路上怒不可遏?"相反,请问

为什么不是道路愤怒?或为什么没有这样的

东西足够快?

< http://www.rossde.com/roadrage.html>

HTML stands for HyperText Markup Language. To be HTML, it must have the
markups (e.g., <p>).

In most cases, the end-tag </pis optional. I use the end-tag only
when I have declared a style for <p(e.g., via a class attribute) that
I don''t want to continue into content where I don''t want to declare a
new paragraph.

--

David E. Ross
<http://www.rossde.com/>.

Don''t ask "Why is there road rage?" Instead, ask
"Why NOT Road Rage?" or "Why Is There No Such
Thing as Fast Enough?"
<http://www.rossde.com/roadrage.html>


Yogi写道:
Yogi wrote:

>

我有一个简单的问题。在我的html文档中,每当我在html源代码中有一个空行时,我想创建一个新的

段落。使用< p>

和< / pevery time有点麻烦(我想以LaTeX

的方式)。有可能吗?
>
I have a quick question. In my html document, I want to make a new
paragraph whenever I have a blank line in the html source. Using <p>
and </pevery time is kind of cumbersome (I want to do it the LaTeX
way). Is it possible at all?



您可以尝试将您的内容设为文本文件,并使用< preand< / pre>

将其删除,并希望最好的。我不确定什么HTML标记

你可以在< preelement中使用,但我会把这个

发现留给你。


我必须说,这是一个奇怪的要求。在文档中将段落标记为

段落是Web发布的一部分。 HTML是实现这一目标的手段。抛出一个三字节的标签,因为它太长了对我来说是个奇怪的。但是,我不是LaTeX Way的追随者。


-

John

You can try making your content as a text file, with <preand </pre>
deliminating it, and hope for the best. I''m not sure what HTML markup
you''ll be able to use inside the <preelement, but I''ll leave that
discovery to you.

I must say, though, that it''s a weird request. Marking up paragraphs as
paragraphs in documents is part of Web publishing. HTML is the means to
do that. Throwing out a three-byte tag because it''s too long is jsut
bizarre to me. But then, I am not a follower of the LaTeX Way.

--
John


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

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