我创建了一个html表单。其中有一个背景图片。在chrome和Mozilla中,我在运行html表单时获得了正确的背景图像。但它没有在IE9中加载。 IE9在运行HTML表单时显示白色背景,如果我刷新IE9浏览器,它会给我背景图像。我附上了我的代码:
<!DOCTYPE html>
<!-- saved from url=(0039)http://myshop.riis-retail.com/index.php -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" class="js">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<title>Personal Login</title>
</head>
<body id="pid-user" class="front not-logged-in page-user no-sidebars layout-main grid-type- grid-width-00">
<h1>Code block</h1>
</body>
</html>
css代码:
#pid-user #content{ border:#FF0000 0px solid; background:url(../images/black-background.jpg)left top no-repeat;opacity:0.7;filter:alpha(opacity=70); float:left; width:215px; padding:0px !important;}