怎样实现Html标签背景颜色重叠内联a元素高亮显示
效果就是天猫页面右侧黑色 请登录 高亮显示效果,求大神提供案例代码,下面是我做的重叠 但是链接a(点击进入)元素 无法高亮显示 求高手给予帮助!谢谢
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style type="text/css">
*{
margin:0;padding:0;
}
img{
border:0;
}
.pic{
width:125px;height:63px;position:relative;z-index:100;background-color: black;
}
.people{
width:125px;height:63px;position:absolute;background-color:deepskyblue;
top:0;left:0;opacity:0;
}
.people span{
color:#fff;text-align:center;height:30px;display:inline-block;
}
.people a{
display:inline-block;color:#ffffff;text-decoration:none;width:80px;height:24px;
text-align: center;border-radius:7px;background-color:#c40000;position:absolute;
left:20px;top:30px;
}
.people:hover{
background-color:#00ce98;opacity:0.7;
}
</style>
</head>
<body>
<div class="pic">
<!--<img src="images/ttt.jpg">-->
<div class="people">
<span>关注人数56.8万</span>
<a href="">点击进入</a>x
</div>
</div>
</body>
</html>