我使用了 html 代码头类型并将 css 用于它。然后为它做一个背景。它在 google crome、mozilla、safari 中运行良好,但背景在 ie 8 from header 中不起作用。
<!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>
你能请任何人解决这个问题吗?提前致谢...