类似于百度的下拉菜单
来源:互联网 发布:淘宝退的运费险在哪里 编辑:程序博客网 时间:2024/05/22 09:21
鼠标hover之后弹出下拉的,代码如下
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> ul{ list-style: none; } .nav>li{ float: left; } ul a{ display: block; text-decoration: none; width: 100px; height: 50px; text-align: center; line-height: 50px; color: white; background-color: #2f3e45; } .drop-down-content{ padding: 0; display: none; /*position: absolute;*/ } h3{ font-size: 30px; clear: both; } .drop-down-content li:hover a{ background-color:red; } .nav .drop-down:hover .drop-down-content{ display: block; }</style></head><body> <ul class="nav"> <li class="drop-down"><a href="#">用户名</a> <ul class="drop-down-content"> <li><a href="#">个人中心</a></li> <li><a href="#">退出</a></li> </ul> </li> </ul> <h3>我是测试文字</h3></body></html>参考资料
[1]用纯css实现下拉菜单
阅读全文
0 0
- 类似于百度的下拉菜单
- 仿百度的下拉菜单原生js
- 类似于QQ的菜单
- 类似于QQ的菜单
- 类似于flash的菜单
- 具有删除功能的下拉菜单按钮。类似于QQ登录框的用户输入框
- 具有删除功能的下拉菜单按钮。类似于QQ登录框的用户输入框
- 下拉框模糊查询,类似于百度搜索效果
- 类似于vs.net工具箱的菜单
- 类似于vs.net工具箱的菜单
- PreferenceActivity:类似于setting菜单样式的activtity
- iPhone->类似于popoverView的一个菜单组件
- 简单类似于百度的自动补全功能
- 仿百度下拉菜单 Ajax + struts2
- 用vue去实现百度下拉菜单
- 动态的下拉菜单
- 聪明的下拉菜单
- 下拉菜单的源码
- idea Unable to open debugger port (127.0.0.1:58233): java.net.SocketException "socket closed"
- HDU-5935 Car 逆推 贪心 精度
- ES6(let 、const)
- The Unique MST POJ
- BZOJ 4033 [HAOI 2015] 树DP 解题报告
- 类似于百度的下拉菜单
- ospf 的cost 与Metric
- mysql Aborted connects值很大且增长很快,采用tcpdump+wireshark分析
- BZOJ 1821 [JSOI2010]Group部落划分
- Java语言中进行异常处理的关键字具体含义:throws、throw、try、catch、finally
- Android下载时Execution failed for task ':app:compileDebugNdk'.异常的处理
- SpringMVC处理Ajax01
- web移动端bug总结
- 记得