我有一個背景圖片,我試圖用作徽標。所有的罰款都在Chrome & FF中,但未在IE8中顯示。背景圖片根本無法加載。我如何讓他們在IE8中展示?IE8中沒有出現背景圖像
這是代碼:
<header>
<h1 class="logo">
<a href="http://publix.newhaven.edu/hlee-test">Henry C. Lee Institute of Forensic Science</a>
</h1>
</header>
CSS:
header {
margin: 0 10px 38px 7px;
padding: 30px 0 0 0;
}
header h1{
width:232px;
}
header h1 a {
background:url('images/logo.png') 0 0 no-repeat;
display:block;
height:89px;
text-decoration:none;
text-indent:-9999px;
width:243px;
}
你使用html5shiv.js嗎? – Belyash 2013-05-03 02:29:50