gpt4 book ai didi

css - 使文本行响应

转载 作者:行者123 更新时间:2023-12-02 00:47:32 25 4
gpt4 key购买 nike

我的网站上有以下部分。问题是文本行没有响应。

如何将其转换为响应式文本?

这是它在 22"屏幕上的显示方式:

enter image description here

这是它在 13"屏幕上的显示方式:

enter image description here

这是它在 5.2"手机屏幕上的显示方式:

enter image description here

https://jsfiddle.net/hd99bfyd/

<section id="three" class="wrapper style5">
<div class="inner">
<p>Do You Want To Join Our Team?</p>
</div>
</section>

.wrapper.style5 {
background-color: #D22362;
color: #fff;
border-top: 0;
text-align: center;
font-size: 50px;
background-image: url("images/airc1.jpg");

}

最佳答案

添加一个 line-height 设置,例如 120%:

.wrapper.style5 {
background-color: #D22362;
color: #fff;
border-top: 0;
text-align: center;
font-size: 50px;
line-height: 120%;
background-image: url("images/airc1.jpg");

}
<section id="three" class="wrapper style5">
<div class="inner">
<p>Do You Want To Join Our Team?</p>
</div>
</section>

关于css - 使文本行响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42674050/

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