这是问题的链接>> http://vubscs.tk/Forum-C-Lectures
背景在 IE8 中重复,但它在 FF、Chrome 和 Opera 中工作正常,我什至使用 background:url() no-repeat;
这是 IE 8 中的屏幕截图
最佳答案
您没有正确关闭包含 vpassmain
div 的表单。正确封装该表单,它应该可以正常工作。
现在是这样的:
<form action="/Forum-C-Lectures" method="post">
<br /><br />
<center> /* opened center tag with no closing tag */
<div class="vpassmain">
<div class="vpass">
Password: <input type="password" class="textbox" name="pwverify" value="" />
<div class="vbtn">
<input type="submit" class="button" name="submit" value="Verify Password" />
</form> /* form closes here */
</div>
</div>
</div>
固定版本
<form action="/Forum-C-Lectures" method="post">
<br /><br />
<center>
<div class="vpassmain">
<div class="vpass">
Password: <input type="password" class="textbox" name="pwverify" value="" />
<div class="vbtn">
<input type="submit" class="button" name="submit" value="Verify Password" />
</div>
</div>
</div>
</center>
</form>
关于css - 在 IE 8 中显示双重背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9329618/