我使用blockquote类来显示引用的文本。现在的问题是,文本开头的引号现在在结尾处显示字符串,它们在第一句话结束,而不是在文本结尾处显示。以下是我正在讨论的内容的图像:

我的Css代码:
<style>
.artificial{
position: relative !important;
width: auto
}
.quote-card.blue-card:before{
font-size: 22px !important;
position: absolute !important;
top: 30px !important;
left: 30px !important
}
.quote-card.blue-card:after{
font-size: 22px !important;
position: absolute !important;
top: -6px !important;
right: 50px !important
}
</style>HTML代码:
<blockquote class="quote-card blue-card">
<div class="artificial" style="position: relative">
<h3 style="font-family: cursive; color: white; width: auto;">DEN HAAG - Met de vaccinatiecampagne tegen corona oogst minister Hugo de Jonge (Volksgezondheid) opnieuw kritiek. Want waarom laat de aftrap in Nederland langer op zich wachten dan elders, zo vragen partijen zich af tijdens het spoeddebat in de Tweede Kamer.
</div>
<small>
</cite>
</small>
</blockquote>发布于 2020-12-19 01:43:03
在你的风格中加入这一点:
.quote-card.blue-card:after{
position: absolute !important;
/* display: block; don't use this, it raised the quote too high from the bottom - defeated line-height? */
float:right;
font-size: 22px !important;
line-height: 1;
right:200px;
bottom:20px;
content: "\201D";
}https://stackoverflow.com/questions/65360998
复制相似问题