我有以下html代码:
<ul class="ul">
<li class="li">
<a href="#;" class="a">Link</a>
<div class="div"> <img src="photo.jpg" /> </div>
</li>
</ul>
以及以下 CSS:
ul.ul {
background-image: url(text.png);
background-repeat: no-repeat;
background-position: 100% 0;
>li.li{
height: 80px;
min-width: 68px;
background-repeat: no-repeat;
background-position: 50% (72px-32px-12px);
color: #fff;
>a {
line-height:8px;
margin-top: 12px;
color: #fff;
font-weight: bold;
padding-bottom: 10px;
height: (80/2+14);
}
>div.div{
text-align: center;
}
}
我的 div 在元素“a”下,我想把它放在元素 a 上。在萤火虫中,似乎 div 在 li 之外。你能告诉我有什么问题吗?
谢谢!