如何使对话对话如下所示:
第一个人:“你好”
第二个人:“你好”
我的对话用黑色和黄色着色
如您所见,引号开始的点不匹配,因此看起来确实很乱,我想让它缩进一点,并且还希望名称块具有相同的宽度(这将适用于所有对话中的名字,不管是长名字还是短名字)你看到第三行的“你”了吗?如果可能的话,我可以让它出现在报价自动开始的地方吗?
这是我的对话:
<p class="smallmargin"><span> <span class="dialogue1"><span class="person1">Harvey: </span> "What are your choices when someone puts a gun to your head?"</span> <span class="dialogue2"></span></span><br />
<span class="dialogue2"><span class="person2">Mike: </span> "What are you talking about? You do what they say or they shoot you." </span> <br />
<span class="dialogue1"><span class="person1">Harvey: </span> "Wrong. You take the gun, or you pull out a bigger one. Or, you call their bluff. Or, you do any one of a hundred and forty six other things."</span></p>
这是我的 CSS 标记:
p.smallmargin {
margin: 0px;
padding: 0px;
line-height:160%;
}
.dialogue1 {
background-color: #FFB100;
color: black;
font-size: 15px;
font-family: 'Arial Black';
}
.dialogue2 {
font-weight: bold;
font-family: 'Arial Black';
font-size: 15px;
color: #FFB100;
background-color:black;
}
.person1 {
font-weight: bold;
font-family: 'Arial Black';
font-size: 15px;
color: #FFB100;
background-color:black;
text-transform: uppercase;
}
.person2 {
font-weight: bold;
font-family: 'Arial Black';
font-size: 15px;
color: black;
background-color: #FFB100;
text-transform: uppercase;
}
顺便说一句,我知道我可以添加
,但这意味着我必须手动将其添加到每个对话中,这将是一项令人厌烦的工作。