跨度或DIV我有这种情况:CSS:如何定位内部锚
Notifications
这将产生以下:
a.messages{ background: url(../img/Footer/iconMail.png) no-repeat center center; border-right: 1px solid #bbb;}
.messagesCount {
background-color: red;
border: 1px solid white;
border-radius: 16% 16% 16% 16%;
color: White;
font-family: Verdana;
font-size: 8px;
font-weight: bold;
height: 20px;
margin-left: -20px;
position: relative;
width: 198px;
z-index: 2147483647;
padding: 0 1px;
}
的问题是,由于跨度是不是里面的锚点元素是不可点击的,如果我将它放入锚点元素中,则无法识别。
白色邮件信封是图片,信封图片右上角的红色框是范围。
注:我不能改变结构li - > a - >小,因为它被jQuery插件使用,跨度是我的一个附加。