gpt4 book ai didi

css - 如何在不影响整体内联文本的情况下应用悬停效果(增加字体大小)?

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

如何在不影响整体内联文本的情况下应用悬停效果(增加字体大小)?我是 css 的新手。非常感谢您的帮助!

行高无效

最佳答案

请试试这个:)

.text{
font-size:20px; /* Font size you need in start*/
color:#333; /* font color #333 is hexadecimal code of black shade */
font-family:arial; /* font family to style the text */
font-weight:bold; /* To bold the text */
}
.text:hover{
transform:scale(1.5); /* The deafult value is 1 if you change it to any value less than one it will be smaal and vise versa large */}


/* YOU CAN ADD ANIMATION TOO FOR SMOOTH RESIZE */
.smooth{transition:all 0.3s;}
<center> <!-- The center tag is used to align the text in center -->
<p class="text"> PIXALVOOP - TEXT RESIZE</p>
<p class="text smooth"> PIXALVOOP - SMOOTH </p>
<center> <!-- The center tag is used to align the text in center -->

关于css - 如何在不影响整体内联文本的情况下应用悬停效果(增加字体大小)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38044607/

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