经过几个小时的研究和反复试验,我终于能够将新的 Google No Capatcha re Capatcha 添加到我的表单中并使其正常工作,但由于某种原因,它不会居中。有什么想法吗?
<!-- reCapatcha -->
<div id="capatcha">
<div class="g-recaptcha" data-sitekey=""></div>
</div>
#capatcha {
margin: 0 auto;
display: block
}
最佳答案
我选择了:
<style>
/* already defined in bootstrap4 */
.text-xs-center {
text-align: center;
}
.g-recaptcha {
display: inline-block;
}
</style>
<div class="text-xs-center">
<div class="g-recaptcha" data-sitekey=""></div>
</div>
关于css - 居中无验证码 reCaptcha,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27411581/