paypal - AMP-HTML 页面上的 Paypal 按钮
问题描述
有没有办法在 AMP-HTML 页面中包含 PayPal“购买按钮”?PayPal 按钮需要外部脚本,因此页面不会验证。有解决方法吗?
谢谢
啤酒
解决方案
是的,您可以使用 paypal 的 html 按钮不起作用,而“立即付款”按钮图像无法显示
您需要在标题中添加此代码:
body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:- amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to {visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible }}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}body{-webkit-动画:无;-moz-动画:无;-ms-动画:无;动画:无}
您还需要导入 amp-iframe 脚本
您可以在此处查看有关此问题的详细信息: https ://wordpress.stackexchange.com/questions/367201/amp-and-paypal-form-cors-issue?newreg=fc62243f85a2428fb9e0d2f4e6d03233
你可以在这里看到我的代码示例:https ://www.dropbox.com/s/q0qlsab4934es3z/paypal.html?dl=0
推荐阅读
- c++ - 为什么我在使用 boost JSON 时出现 LNK2005 错误
- python - TensorFlow/Keras 代码在 Win10 上返回 FileNotFoundError
- c++ - 如何访问私有成员函数?什么时候是布尔值?
- javascript - 基于数组动态创建点击事件并改变被点击元素的格式
- vba - 使用 VBA、Selenium 和 Chrome 检查文件是否完全下载
- html - 使用绝对位置和粘性
- r - 使用 dplyr::summarize 和 seq_along 时出错
- image - 在粘贴到 Word 之前减小图像大小
- mysql - mysql客户端在使用脚本运行时打印帮助消息,但直接在shell中运行良好
- sql - 在 postgres 表中查找前 n 个“未使用的值”