2017-04-19 115 views
1

如何更改使用CSS的谷歌recaptcha宽度框?如何使用css更改google recaptcha宽度框?

我试图改变谷歌recaptcha宽度框,但没有工作,我该怎么办?

http://codepen.io/anon/pen/RVrPVx 

<script src='https://www.google.com/recaptcha/api.js'></script> 
<div id="recaptcha" class="g-recaptcha" data-sitekey="6Lc7JBAUAAAAANrF3CJaIjt7T9IEFSmd85Qpc4gj"></div> 

回答

4

您可以使用变换属性在这里。 您还可以检查例如here

.g-recaptcha { 
    transform: scale(2); 
    transform-origin: 0 0; 
} 

.g-recaptcha { 
 
    transform: scale(2); 
 
    transform-origin: 0 0; 
 
}
<script src='https://www.google.com/recaptcha/api.js'></script> 
 
<div id="recaptcha" class="g-recaptcha" data-sitekey="6Lc7JBAUAAAAANrF3CJaIjt7T9IEFSmd85Qpc4gj"></div>

Codepen例如here