gpt4 book ai didi

html - 我将如何为我的推荐页面实现这一目标?

转载 作者:行者123 更新时间:2023-11-28 03:19:11 25 4
gpt4 key购买 nike

我想在报价的开头和结尾处加上超大引号。目前我遇到的问题是间距太大。这是我的代码:

HTML:
<section class="testimonial">
<span class="quote">&quot;</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">&quot;</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;
}

这是我想要实现的目标: enter image description here

最佳答案

试试这个:

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;
}

关于html - 我将如何为我的推荐页面实现这一目标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25455786/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com