html - 在页面浏览器中添加自定义 css 后,在更新该页面后更改整个 css
问题描述
我在 WordPress 网站上为按钮编写了这个 CSS。但是更新后我看到按钮有一个新的动画,我没有写任何CSS。然后我检查了一下,发现有新
keyframe
添加的。
我写的CSS-
a.eael-creative-button.eael-creative-button--ujarak {
animation: pulse infinite 2s;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgb(253 253 253 / 70%);
}
70% {
box-shadow: 0 0 0 20px rgb(255 232 0 / 0%);
}
100% {
box-shadow: 0 0 0 0 rgb(255 232 0 / 0%);
}
}
更新我在检查模式下找到的 css 后-
a.eael-creative-button.eael-creative-button--ujarak {
animation: pulse infinite 2s;
}
@keyframes pulse {
0%, 100% {
transform: scale3d(1,1,1);
}
50% {
transform: scale3d(1.05,1.05,1.05);
}
更新页面后,此处Keyframes
自动更改。为什么会这样?请问有人知道解决方法吗?
解决方案
您与 WordPress 网站中的一些现有 CSS 发生了冲突。不是自动添加了额外的 CSS 属性,而是已经pulse
定义了动画。尝试称它为不同的东西。
推荐阅读
- reactjs - FirebaseError:未指定存储桶名称或无效
- flutter - 如何使透明图像的特定部分可点击?
- reactjs - React 路由器未根据条件重定向
- featherlight.js - 导入featherlightGallery的问题
- java - 正确使用 BitSet 替换基于 int 的标志。是否可以?
- three.js - ThreeJS:有没有可能减少三角形数量的方法
- javascript - Intl.DateTimeFormat 显示时间为 24:59
- python - 有没有办法在 dashTable 中返回当前页面?
- php - 在页面加载时提交 $_POST 变量而不刷新
- content-management-system - 如何在 Plone-4 中限制匿名用户访问内容?