我一直试图制作一个自定义的tumblr主题,但每当我在一个具有postion:div的div中放置一个链接时,链接就会变得无法点击并被视为普通文本。
这是链接不起作用的地方:
<div id="sidebar"><center>
<p id="avap">
<br><b>EARTH-BEETLE</b>
<br><a href="earth-beetle.tumblr.com"><img src="{PortraitURL-64}" /></a>
</p>
<a href="http://chickensmoothie.com">test link</a>
</center></div>
</div>
css:
#sidebar {
background-color: white;
width: 300px;
height: 300px;
position: fixed;
top: 150px;
left: 35px;
border-style: solid;
border-width: 2px;
}
#tagp {
background-color: #87DEBE;
border-style: solid;
border-width: 2px;
position: fixed;
top: 490px;
left: 35px;
border-color: #208560;
width: 250px;
height: 50px;
}
#avap {
background-color: #87DEBE;
width: 300px;
height: 150px;
}
答案 0 :(得分:0)
将z-index更改为5,谢谢!