css - 在 IE 8 中显示双重背景

标签 css internet-explorer background double

这是问题的链接>> http://vubscs.tk/Forum-C-Lectures

背景在 IE8 中重复,但它在 FF、Chrome 和 Opera 中工作正常,我什至使用 background:url() no-repeat;

这是 IE 8 中的屏幕截图

Here is the screen shot in IE

最佳答案

您没有正确关闭包含 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/

相关文章:

internet-explorer - 如果浏览器支持,则在 IE 中删除 HSTS 以测试重定向到 https,并且对于子域是可以的

html - Internet Explorer 和 Firefox 中的颜色兼容性问题

ios - 应用程序进入后台时显示启动画面

css - 在 :hover - possible in CSS? 上交叉渐变 div 背景

css - 我怎样才能使我的边界半径曲线向外?

html - 导航菜单项悬停填充忽略边距

javascript - 任何浏览器都可以打开一个比屏幕尺寸大的新窗口吗?

应用程序终止时的 iOS 10 更新位置

javascript - 使用 jQuery 单击 anchor 时切换最近的内容

jquery - 显示一个剪裁的 div