我似乎在使用我们的实时平台上的某些 CSS 时遇到了问题。
我们有一个添加到购物车按钮,它从“索引”而不是我们正在推送的 CSS 中提取更改。
此代码似乎在我们的暂存平台和实时平台上都运行良好:
.single-product div.product form.cart .quantity {
float: initial;
}
.single-product div.product form.cart .button {
float: initial;
margin-top: 30px;
padding-right: 158px;
background-color: #ff63b1;
}
但是,似乎当我们试图改变 .added_to_cart.alt, .button.alt, button.alt, 输入[type=button].alt, 输入[type=reset].alt, input[type=submit].alt { 它不会被识别为代码不正确并继续从索引中提取。
这是我们正在尝试做的改变,它在舞台上运行良好但在现场运行时效果不佳:
.added_to_cart.alt, .button.alt, button.alt, input[type=button].alt,
input[type=reset].alt, input[type=submit].alt {
font-size: 18px;
font-family: Georgia;
letter-spacing: 1px;
line-height: 20px;
font-style: normal;
font-weight: 700;
text-decoration: none;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-top: 15px;
padding-bottom: 19px;
padding-left: 158px;
padding-right: 100px;
color: #fff;
border-width: 0;
border-radius: 0;
border-style: none;
border-color: #62b237;
background-color: #47a332;
}
我们的暂存平台是我们实时(3 天前)的最新副本,自上次副本以来没有发生重大变化。在检查 inspect 时,看起来元素是相同的,并且控制台中没有任何错误。
我试过关闭实时缓存插件并删除我自己的浏览器历史记录,但这没有用。我现在很困难,真的需要一些帮助。
如果您想自己检查代码,这里是我们产品页面的链接: http://www.cutepinkboutique.com/product/selfish-love-heels/
最佳答案
您没有正确链接 CSS 文件。这是它
的样子:
http://www.cutepinkboutique.com/?sccss=1&ver=4.7.5
关于html - CSS 不会实时更新,但适用于暂存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44255326/