我的目标:除了 .firstCharacter 之后的段落之外,所有段落都缩进。
我的页面中某些部分的第一段有一个首字下沉。我已将第一个段落标签之后的所有段落标签设置为使用...缩进
.storyContainer p + p {
text-indent: 1.5em;
margin-top: 0
}
我正在使用...设置我的下沉帽
.firstcharacter {
float: left;
font-size: 80px;
line-height: 60px;
padding-top: 4px;
padding-right: 8px;
padding-left: 3px;
font-family: 'Droid Serif', serif;
}
我的html是这样的......
<div class="headline">This is a headline!</div>
<p><span class="firstcharacter">T</span>his text NOT indented because it's first</p>
<p>This text will be indented because it's second.</p>
<p>This text will be indented because it's third.</p>
<div class="someBox">This is some extra box</div>
<p>I want this to be indented but it won't be because it is first after the box!</p>
<p>This text will be indented because it's second.</p>
<div class="headline">This is a headline!</div>
<p><span class="firstcharacter">T</span>his text NOT indented because it's first</p>
<p>This text will be indented because it's second.</p>
<p>This text will be indented because it's third.</p>
<div class="someBox">This is some extra box</div>
<p>I want this to be indented but it won't be because it is first after the box!</p>
<p>This text will be indented because it's second.</p>
关于如何解决这个问题的任何帮助?
谢谢!