使用jQuery无法在PayPal I框架内更改按钮样式 [英] Change button style inside paypal i frame using jquery not working

查看:78
本文介绍了使用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&amp;commit=true&amp;style.label=pay&amp;style.layout=vertical&amp;style.size=responsive&amp;style.shape=rect&amp;style.color=gold&amp;style.tagline=false&amp;locale.x=en_US&amp;funding.disallowed=credit%2Cvenmo&amp;domain=store17204827.ecwid.com&amp;sessionID=93bede67c2_mdy6mzk6mdg&amp;buttonSessionID=c3989cbef7_mdy6mzk6mdg&amp;logLevel=warn&amp;sdkMeta=eyJ1cmwiOiJodHRwczovL3d3dy5wYXlwYWxvYmplY3RzLmNvbS9hcGkvY2hlY2tvdXQubWluLmpzIn0%3D&amp;uid=645255e5ef&amp;version=min&amp;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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆