HTML+CSS实现图片下拉菜单
代码:
<div class=”dropdown”>
<span><img src=”#”></span>
<div class=”dropdown-content”>
<a href=”1″>VIP链接预留 </a>
<a href=”1″>VIP链接预留 </a>
</div>
</div>
<style>
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #ffffff;
min-width: 120px;
box-shadow: 6px 6px 6px 0px rgba(0,0,0,0.2);
padding: 5px 10px;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
温馨提示 : 非特殊注明,否则均为©李联华的博客网原创文章,本站文章未经授权禁止任何形式转载;IP地址:44.222.82.133,归属地:弗吉尼亚州Ashburn ,欢迎您的访问!
文章链接:https://www.ooize.com/picture-drop-down-menu-implemented-by-html-css.html
文章链接:https://www.ooize.com/picture-drop-down-menu-implemented-by-html-css.html
订阅
登录
0 评论