gpt4 book ai didi

html - 如何在 HTML/CSS 中设计双引号?

转载 作者:太空宇宙 更新时间:2023-11-03 22:27:57 24 4
gpt4 key购买 nike

我有一个如下所示的设计,我要在 HTML/CSS 中进行复制。设计截图如下:

enter image description here

目前,我可以在 fiddle 中获得此信息.在 fiddle 中,我使用了简单的双引号,但它看起来与图像中的不同。

我在 fiddle 中使用的 HTML 代码片段是:

<h6>What Do Our Customers Have to Say ?</h6>
<p>
"BPRO helped me realize the importance of cus-
tomer organization and tracking, service track-
</p>

问题陈述:

我想知道我应该在 fiddle 中进行哪些更改,以便能够复制上面的屏幕截图。

最佳答案

通常这是通过 :before 来实现的。和 :after元素利用 content 中的实际引号字符属性(或有时是 SVG)。对于这个例子,我只是将它们松散地定位到 block 引用。

blockquote {
padding: 20px 60px;
background: #eee;
border-radius: 10px;
font-family: arial;
line-height: 1.625;
position: relative;
}

blockquote p {
text-align: center;
}

blockquote span {
position: relative;
display: inline-block;
}

blockquote span:before {
content: "“";
font-size: 72px;
color: #79b83a;
position: absolute;
left: -40px;
top: 40px;
line-height: 0;
}

blockquote span:after {
content: "”";
font-size: 72px;
color: #79b83a;
position: absolute;
right: -40px;
bottom: -10px;
line-height: 0;
}
<blockquote><span>BPRO helped me realize the importance of cus- tomer organization and tracking, service track- ing and just being on the top of things behind the scene. The more you grow – the more difficult this becomes – but having the right tools to keep your business organized is just as impor- tant as having the right tools to do job itself.</span>
<p>Some Person - Some Day 2018</p></blockquote>

关于html - 如何在 HTML/CSS 中设计双引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50226608/

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