gpt4 book ai didi

javascript - 如何在 JS 插件中现有的之上添加转换

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

我正在使用插件 arctype.js,它允许您在页面上 flex 文本。但是,它使用转换,现在我无法使用 css transform 添加任何其他转换效果。这是我试过的代码:

<center><h2 id = "days" class = "numbers">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 </h2></center>

<style>
.numbers .char1{
transform: translate(0px, 0);
transition: -webkit-transform 0.8s ease;
}

.numbers .char1:hover{
transform: scale(0.7);

}
<style>

最佳答案

为了覆盖插件的 css 并确保您的样式声明始终获得最高优先级,您可以使用 !important

.classname {
transform: scale(0.7) !important;
}

关于javascript - 如何在 JS 插件中现有的之上添加转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55074668/

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