我想在报价的开头和结尾处加上引号过大的引号。目前我遇到的问题是间距太大。这是我的代码:
HTML:
<section class="testimonial">
<span class="quote">"</span>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi.
</p>
<div class="last">
<span class="quote">"</span>
</div>
</section>
CSS:
/* Testimonials */
.testimonial p {
margin: 0 12.5% 15px;
text-align: center;
}
.quote {
font-family: "times new roman", sans-serif;
font-size: 5em;
color: #CC1714;
display: inline-block;
}
.last {
text-align: right;
}
以下是我想要实现的目标:
答案 0 :(得分:0)
试试这个:
CSS
.testimonial p {
display: inline-block;
margin: 0;
text-align: center;
}
.quote {
font-family: "times new roman", sans-serif;
font-size: 5em;
color: #CC1714;
display: inline-block;
}
.last {
display: inline-block;
text-align: right;
}