标签:基本 16px www dropdown 下拉菜单 0px display
基本下拉菜单
当鼠标移动到指定元素上时,会出现下拉菜单。
实例
<style> .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; margin: 0px; padding: 0px; color: gray;"> #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); padding: 12px 16px; } .dropdown:hover .dropdown-content { display: block; } </style>
<div class="dropdown"> <span>鼠标移动到我这!</span> <div class="dropdown-content"> <p>菜鸟教程</p> <p>www.runoob.com</p> </div> </div>
https://www.lekaowang.com/cjhjs/zx/ksdg/
标签:基本,
16px,
www,
dropdown,
下拉菜单,
0px,
display
From: https://www.cnblogs.com/5-si6/p/17292483.html