我使用reCAPTCHA,并且recaptcha_challenge_field
的textarea出现在recaptcha框的中间,与其他东西重叠。我发现,这是因为这种风格:覆盖reCAPTCHA CSS
.recaptchatable #recaptcha_response_field {
position: absolute!important;
,当我在Chrome设置position
到static
,它看起来不错。但是,我无法弄清楚如何覆盖该CSS选项。
我想:
加入这个我自己的CSS:
.recaptchatable #recaptcha_response_field { position: static !important; }
- 添加名为
.recaptcha_text
- 通过DIV类调用它在我的CSS另一个条目(包绕textarea)
- 通过p类调用它(环绕textarea)
- 加入
position: static!important;
的标准<textarea name="recaptcha_challenge_field" ...>
标签
但是,我不能让我的CSS覆盖该位置:静态重要;与脚本过来:
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=your_public_key">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=your_public_key"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
有人可以请帮助我做错了什么?谢谢!
它应该是沙盒,以便确认它不是导致问题的风格之一,例如,尝试在只有recaptcha的空白页面上进行再现。否则是recaptcha css在它自己的文件中?将其替换为本地修改后的副本。 – paislee 2012-02-01 01:31:47