有没有办法在magento的paypal支付方式页面上更新css?
有没有办法在magento的paypal支付方式页面上更新css?,magento,paypal,magento2,payment-method,Magento,Paypal,Magento2,Payment Method,我想更新这个页面,但它的css是从贝宝网站加载。common.css是从paypal网站加载的,但如果您试图使用jQuery调整css组件,就像在M1中那样,仍然不会反映出任何更改,因为M2使用RequireJS 相反,您应该在所需的PHTML文件中添加如下内容: <script> require([ "jquery" ], function ($) { // Perform desired action(s)
我想更新这个页面,但它的css是从贝宝网站加载。common.css是从paypal网站加载的,但如果您试图使用jQuery调整css组件,就像在M1中那样,仍然不会反映出任何更改,因为M2使用RequireJS 相反,您应该在所需的PHTML文件中添加如下内容:
<script>
require([
"jquery"
], function ($) {
// Perform desired action(s) on the selector(s) you're interested in
// For example:
$("#UiElementOfInterest").hide();
});
});
</script>
要求([
“jquery”
],函数($){
//在感兴趣的选择器上执行所需的操作
//例如:
$(“#UiElementOfInterest”).hide();
});
});
希望有帮助!:) 如果您试图使用jQuery调整CSS组件,就像在M1中那样,那么在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>
要求([
“jquery”
],函数($){
//在感兴趣的选择器上执行所需的操作
//例如:
$(“#UiElementOfInterest”).hide();
});
});
希望有帮助!:)