使用jquery更改paypal i框架内的按钮样式不起作用 [英] Change button style inside paypal i frame using jquery not working
本文介绍了使用jquery更改paypal i框架内的按钮样式不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站有以下 iframe
i have following iframe in my website
<iframe class="zoid-component-frame zoid-visible" frameborder="0" allowtransparency="true" name="test" title="ppbutton" scrolling="no" allowpaymentrequest="allowpaymentrequest" src="https://www.paypal.com/webapps/hermes/button?env=production&commit=true&style.label=pay&style.layout=vertical&style.size=responsive&style.shape=rect&style.color=gold&style.tagline=false&locale.x=en_US&funding.disallowed=credit%2Cvenmo&domain=store17204827.ecwid.com&sessionID=93bede67c2_mdy6mzk6mdg&buttonSessionID=c3989cbef7_mdy6mzk6mdg&logLevel=warn&sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQubWluLmpzIn0%3D&uid=645255e5ef&version=min&xcomponent=1" style="background-color: transparent;"></iframe>
如果你在这里运行代码,你会看到有一个按钮来了.我想将黄色按钮文本更改为用借记卡或信用卡付款".我尝试过一些事情,但注意到工作.我尝试隐藏也不起作用的按钮日志.请看我们的代码
If you run the code here you can see there is a button coming . I want to change the yellow button text as "pay with debit or credit card" .i tried things but noting work . I try to hide the button log that also not working . Please see our code
$(".zoid-component-frame.zoid-visible").bind("load",function(){
alert();
$(this).contents().find(".paypal-button-logo-gold").css("display","none");
});
请帮忙解决这个问题.
推荐答案
我们无法更改从其他域获取的 iframe 内容检查此链接如何跨域更改 iframe 内容的样式?
we cannot change the iframe content getting from other domain CHeck this link How to change style of iframe content cross-domain?
这篇关于使用jquery更改paypal i框架内的按钮样式不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文