有时我们需要对一大段文字进行首行缩进(就是那种写作文每段前面空2格的意思)
在head里面定义好样式
head
p
text-indent
2em
<style type="text/css"> p{ text-indent:2em;} </style>
在需要引用这种样式的地方用p标签标记起来 例如:
p标签
<p>这是首行缩进测试文本</p>