gpt4 book ai didi

html - CSS 字体显示不符合预期

转载 作者:行者123 更新时间:2023-11-27 23:36:33 24 4
gpt4 key购买 nike

我的网站右侧有一个字体部分的当前状态,名为:“Words 是您可以用 3 个单词创建自己的故事的地方!”

样式网站:http://words.goldwingstudios.de

但我希望它看起来像这样:

Expected font styles

这是本节的源代码:

<div class="__log_reg_preview_slogan_container">
<div class="__log_reg_preview_slogan_quotes">
"
</div>
<div class="__log_reg_preview_slogan">
Words is the place where you can create your own story out of <b class="__log_reg_preview_slogan_quotes_textbig">3</b> words!
</div>
<div class="__log_reg_preview_slogan_quotes">
"
</div>
<div class="fix_float"></div>
</div>

CSS

.__log_reg_preview_slogan_container
{
width: 80%;
height: 15%;
margin: 0 auto;
text-align: center;
display: table;
font-family: words_chat_text;
}

.__log_reg_preview_slogan
{
display: inline-block;
width: 400px;
display: table-cell;
font-size: 14px;
}

.__log_reg_preview_slogan_quotes
{
display: inline-block;
position: relative;
vertical-align: bottom;
display: table-cell;
font-size: 55px;
font-weight: bold;
line-height: 101px;
}

.__log_reg_preview_slogan_quotes:not(:first-child)
{
display: inline-block;
position: relative;
vertical-align: bottom;
display: table-cell;
font-size: 55px;
font-weight: bold;
line-height: 20px;
}

谁能告诉我我做错了什么?

最佳答案

新 CSS 类

.bottom_quote {
line-height: 0;
vertical-align: bottom;
padding-bottom: 8px;
}

将类添加到底部引号:

<div class="__log_reg_preview_slogan_container">
<div class="__log_reg_preview_slogan_quotes bottom_quote">
"
</div>
<div class="__log_reg_preview_slogan">
Words is the place where you can create your own story out of <b class="__log_reg_preview_slogan_quotes_textbig">3</b> words!
</div>
<div class="__log_reg_preview_slogan_quotes">
"
</div>
<div class="fix_float"></div>
</div>

预览

enter image description here

关于html - CSS 字体显示不符合预期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33622754/

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