最佳答案
如果您尝试像在 M1 中那样使用 jQuery 调整 CSS 组件 - 这在 M2 中将不再有效,因为 M2 使用 RequireJS。
相反,您应该在所需的 PHTML 文件中添加如下内容:
<script>
require([
"jquery"
], function ($) {
// Perform desired action(s) on the selector(s) you're interested in
// For example:
$("#UiElementOfInterest").hide();
});
});
</script>
希望对您有所帮助! :)
关于magento - 有什么方法可以在 magento 的 paypal 付款方式页面上更新 css 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46469010/