有人知道为什么我的 Logo 在 中显示两次吗?
html:
<div id="logo"><a href="/Presidente Prude/oferta_do_dia" class="link">
<font color="#264D73"><img src="/static/css/i/logo.png" alt="Cidade Louca" /></font></a></div>
CSS:
#logo {
width: 400px;
height: 125px;
margin: 3px 0 0 0;
position: absolute;
background: url(i/logo.png) no-repeat;
}
谢谢...
最佳答案
那是因为您设置了两次 - 一次作为 div 的背景,另一次作为 img 标签。去掉其中一个,应该没问题。
<div id="logo">
<a class="link" href="/Presidente Prude/oferta_do_dia">
<font color="#264D73"><img alt="Cidade Louca" src="/static/css/i/logo.png"></font>
</a>
</div>
关于html - 有人知道为什么我的 Logo 显示两次吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7244772/