我需要背景图像保持居中,因为我将在固定位置显示图表并希望货车(在图像中)始终可见。它在 Chrome 等中运行良好,但在 IE8 中没有出现。
http://clients.online95.com/RzMaOxkMOC/rep_mktsh.php
感谢您提供的任何帮助。
#aa_breakdown_bg {
background: url(/RzMaOxkMOC/images/aa_breakdown_bg.jpg) center top no-repeat fixed;
overflow: hidden;
height: 100%;
}
<html lang="en">
<head>
<title>UK Breakdown Market Tracker</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<script type="text/javascript">
window.history.forward();
function noBack() { window.history.forward(); }
</script>
</head>
<body onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
<div id="aa_breakdown_bg"></div>
</body>
</html>