How do you set the badge position with reCAPTCHA v3?

前端 未结 6 1329
长发绾君心
长发绾君心 2020-12-29 05:05

I would like to use an inline badge with v3, but there is no documentation on badge position for v3.

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 05:41

    you can include this into your sass or css to align at left and keep the hover feature active.

    .grecaptcha-badge {
      width: 70px !important;
      overflow: hidden !important;
      transition: all 0.3s ease !important;
      left: 4px !important;
    }
    
    .grecaptcha-badge:hover {
      width: 256px !important;
    }
    

提交回复
热议问题