我使用了html代码标题类型,并为它放置了css。然后为它做一个背景。它在谷歌浏览器,Mozilla,Safari浏览器运行良好,但背景不起作用,即从标题8。仅支持ie8背景吗?
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ASI India Travels</title>
<style>
html, body, div, span, object, iframe, article,
footer, header, hgroup, menu, nav, section, summary,
h1, h2, h3, h4, h5, h6, p,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
vertical-align:baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display:block;
}
body {
background-color:#666666;
}
.container {
width:875px;
margin-left:auto;
margin-right:auto;
}
header{ }
#header {
background-color:#009966;
height:275px;
}
</style>
</head>
<body>
<header id="header">
<div class="container">
header
</div>
</header>
</body>
你可以请任何人解决这个问题吗?在此先感谢...
因为''在IE <9中不是有效的标记吗? –
Passerby