这是HTML
编辑:呈现标记
<div id="phomenu" class="photoMenu">
<ul>
<li><a id="avatar_13885_10028" class="set_avatar" href="#13885">Use This Photo As Avatar</a></li>
<li><a id="cover_13885_10028" class="set_cover" href="#13885">Use This Photo As Album Cover</a></li>
<li><a href="/page-13885-k4cjGSDSG4K.html">Page Photo</a></li>
<li><a href="/?page=photo&section=desc&pho_id=13885">Edit Photo Information</a></li>
<li><a id="remove_k4cjGSDSG4K_13885" class="remove_photo" href="javascript:void(0)">Delete this photo</a></li>
<li><a id="feature_13885" class="feature_photo" href="javascript:void(0)">Feature Photo</a></li>
</ul>
</div>
这就是CSS
.photoMenu ul{
list-style-type: none;
list-style-position: outside;
margin: 0;
padding: 0;
font-size:9pt;
border-top: 2px solid #ffa449;
}
.photoMenu li {
margin: 0;
}
.photoMenu li a {
color: #FFFFFF;
border-bottom: 1px solid #e6e6e6;
display:block;
min-height:25px;
padding-top:10px;
background-color:#C6711B;
text-decoration: none;
}
.photoMenu li a:hover {
color: #FFF;
background-color: #f2a83a;
}
答案 0 :(得分:0)
到目前为止您显示的代码没有任何问题。问题出在其他地方,可能是你的脚本干扰了链接。
如果浏览器刚刚发给您,可能会对javascript:void(0)
部分
虽然没必要,但最后可能需要;
<li><a id="remove_k4cjGSDSG4K_13885" class="remove_photo" href="javascript:void(0);">Delete this photo</a></li>
<li><a id="feature_13885" class="feature_photo" href="javascript:void(0);">Feature Photo</a></li>