我正在使用这个 iframe:
<iframe src="includes/captcha/display_captcha.php" id="captcha" scrolling="no" marginheight="0"></iframe>
滚动和 marginheight 的验证失败 - 每个人都知道这些现在已经过时了。
我已经尝试并在谷歌上搜索了各种解决方案来将这些内联格式转换为 CSS,但在所有浏览器中都不起作用。
你可以在这里(从上面)看到验证码图像 - www.flirtwithme.co - 如果你感兴趣的话。
是否有可能在 CSS 中成功替换这 2 个命令并控制 iframe,还是这还不可能?
谢谢
最佳答案
如果您只想成为有效的 HTML5,那么您需要无缝连接。见http://www.quackit.com/html_5/tags/html_iframe_tag.cfm
<iframe src="includes/captcha/display_captcha.php" id="captcha" height="100" width="50" seamless></iframe>
目前没有任何浏览器支持此功能,因此您必须继续使用无效属性,直到浏览器 catch 标准为止。
关于html - iframe + css + 验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8452385/