css二级菜单效果右侧固定效果首页大类目右拉菜单
代码语言:html
所属分类:菜单导航
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/bfwone.js"></script><!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <style> .menu { position: relative; width: 100px; background: white; padding: 5px; } .menu ul { padding: 0; margin: 0; list-style: none; } .menu ul li { } .menu ul li a { padding: 5px; display: inline-block; width: 100%; } .menu li:hover a { background: #5dd5c8; color: white; } .menu li:hover .submenu { display: block; background: white; } .submenu { padding: 10px; border: 1px solid #5dd5c8; top: 0; left: 110px; position: absolute; display: none; width: 200px; height: 400px; } </style> </head> <body> <div class="menu"> <ul> <li><a>菜单一</a> <div class="submenu"> 子菜单2 <.........完整代码请登录后点击上方下载按钮下载查看
网友评论0