ReCaptcha API v2 Styling

前端 未结 18 1853
孤城傲影
孤城傲影 2020-11-28 02:59

I have not had much success finding how to style Google\'s new recaptcha (v2). The eventual goal is to make it responsive, but I am having difficulty applying styling for ev

18条回答
  •  悲哀的现实
    2020-11-28 03:37

    With the integration of the invisible reCAPTCHA you can do the following:

    To enable the Invisible reCAPTCHA, rather than put the parameters in a div, you can add them directly to an html button.

    a. data-callback=””. This works just like the checkbox captcha, but is required for invisible.

    b. data-badge: This allows you to reposition the reCAPTCHA badge (i.e. logo and ‘protected by reCAPTCHA’ text) . Valid options as ‘bottomright’ (the default), ‘bottomleft’ or ‘inline’ which will put the badge directly above the button. If you make the badge inline, you can control the CSS of the badge directly.

提交回复
热议问题