<style>
.gongzhonghao{
width: 80px;
height: 80px;
position: relative;
top: -85px;
left: 55px;
display: none;
}
//当鼠标移动到该div上时,控制其他div的样式
#gzh:hover + #gongzhonghao{
width: 80px;
height: 80px;
position: relative;
top: -85px;
left: 55px;
display: block;
}
</style>
<body>
<a id="gzh">
<img src="../../public/img/fixed5.png" alt="">
<p>公众号</p>
</a>
<div id="gongzhonghao" class="gongzhonghao">
<img v-show="true" src="../../public/img/fixed6.png" alt="微信公众号">
</div>
<body>
样式作用:通过滑动到指定位置,显示被隐藏的公众号二维码。
如下图所示