如何缩进法线或< PRE> ....< / PRE> HTML中的文字? [英] How to indent a normal or a <PRE>....</PRE> text in HTML?
问题描述
假设我想在网页上发布更长的文章。
我想用缩进显示其中一个段落。
阅读:所有文本行这段应该与正常一起显示(让我们说8)空白
左边。
如果没有编码,怎么办呢?& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nb sp;" ?
是否有像
< TAB size = 8> .....< / TAB> ?
Wladi
Assume I want to publish a longer article on a web page.
One of the paragraphs I want to display with an indent.
Read: All text lines of this paragraph should be displayed with (let''s say 8) blanks
from the "normal" left side.
How do I do that without coding " &nb sp;" ?
Is there something like
<TAB size=8> ..... </TAB> ?
Wladi
推荐答案
Wladimir Borsov写道:
Wladimir Borsov wrote:
假设我想在网页上发布更长的文章。
我想用缩进显示的其中一段。
阅读:本段的所有文本行都应显示为(让我们说
8)来自正常的空白。左边。
Assume I want to publish a longer article on a web page.
One of the paragraphs I want to display with an indent.
Read: All text lines of this paragraph should be displayed with (let''s say
8) blanks from the "normal" left side.
一些选择器{
margin-left:8ex;
}
http://dorward.me.uk/www/css/ #tutorials 如果这没有意义。
-
David Dorward< http://blog.dorward.me .UK /> < http://dorward.me.uk/>
some selector {
margin-left: 8ex;
}
http://dorward.me.uk/www/css/#tutorials if that doesn''t make sense.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Wladimir Borsov写道:
Wladimir Borsov wrote:
假设我想发表更长篇文章一个网页。
我希望用缩进显示的其中一个段落。
阅读:本段的所有文本行都应显示为
(让我们说8)空白正常左侧。
如何在没有编码的情况下这样做
& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nb sp;" ?
有什么类似
< TAB size = 8> .....< / TAB> ?
Wladi
Assume I want to publish a longer article on a web page.
One of the paragraphs I want to display with an indent.
Read: All text lines of this paragraph should be displayed with
(let''s say 8) blanks from the "normal" left side.
How do I do that without coding
" &nb sp;" ?
Is there something like
<TAB size=8> ..... </TAB> ?
Wladi
在CSS中定义一个新的div并将左右边距设置为8em
比主要内容div的边距宽或者< p>?
-
Sue H
* ..·'¨¨)) - :|: -
?。·'。''¨¨))
((?? ??。 。·' - :|: - 让山羊......
- :|: - ((??。·'*
Define a new div in your CSS and set the left and right margins to be 8em
wider than the margins of your main content div or <p>?
--
Sue H
*..· ′¨¨)) -:|:-
?.·′ .·′¨¨))
((??.·′ .·′ -:|:- Let there be goats...
-:|:- ((??.·′*
嗨!
如果您使用CSS,您可以创建一个这样的段落类(代码不是
测试!!):
p.yourparagraphname
{
text-indent:1cm;
}
then :
< p class =" yourparagraphname">
ajaj ajajaj aj aj aj aj a />
< / p> ;
Frank
Hi!
If you use CSS you can create a paragraph-class like this (Code not
tested!!):
p.yourparagraphname
{
text-indent: 1cm;
}
then:
<p class="yourparagraphname">
ajaj ajajaj aj aj aj aj
</p>
Frank
这篇关于如何缩进法线或< PRE> ....< / PRE> HTML中的文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!