在实施新的 Google Invisible reCATPTCHA 时,默认情况下,您会在屏幕右下角看到一个“受 reCAPTCHA 保护”的小徽章,当您将鼠标滑过时,该徽章会弹出。
我想隐藏这一点。
Google 现在允许隐藏徽章FAQ https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed :
我想隐藏 reCAPTCHA 徽章。什么是允许的?
只要您将 reCAPTCHA 品牌明显地包含在用户流程中,您就可以隐藏徽章。请包含以下文字:
This site is protected by reCAPTCHA and the Google
<a href="https://policies.google.com/privacy">Privacy Policy</a> and
<a href="https://policies.google.com/terms">Terms of Service</a> apply.
例如:
所以你可以简单地使用以下 CSS 隐藏它:
.grecaptcha-badge {
visibility: hidden !important;
}
Do not use display: none;
as it appears to disable the spam checking (thanks @Zade)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)