我正在尝试将 recaptcha div 置于我的表单中。外部 reCaptcha DIV 表现得很奇怪,
margin: 0 auto;
float: none;
没有效果。但相同的代码适用于内部 div。
我的问题是,我如何自定义 reCaptcha 内部 div,因为我得到的只是来自 Google 的以下代码以集成到我的表单(外部 DIV)中
<div id="c_rc" class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxx-qLjkB6ixNKweR_2Kv"></div>
最佳答案
尝试使用外部 div 的类定位内部 div 并向下查询:
.g-recaptcha div div {
margin: 0 auto;
float: none;
}
关于html - 样式内部 reCaptcha DIV?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27805089/