Home > Web Front-end > HTML Tutorial > Super simple CSS drop-down menu_html/css_WEB-ITnose

Super simple CSS drop-down menu_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:26
Original
953 people have browsed it

Effect experience: http://hovertree.com/texiao/css/3.htm

HTML file code:

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>简洁的HTML+CSS下拉菜单-HoverTree</title><base target="_blank" /><link href="http://hovertree.com/texiao/css/3/hovertreecss3.css" rel="stylesheet" type="text/css" /></head><body><!-- 代码 开始 --><h1>简洁的HTML+CSS下拉菜单</h1><nav class="nav"><ul class="nav_menu"><li class="nav_menu-item"><a href="http://hovertree.com/" target="_blank">首页</a></li><li class="nav_menu-item"><a href="http://hovertree.com/menu/css/" target="_blank">CSS</a><ul class="nav_submenu"><li class="nav_submenu-item"> <a href="http://hovertree.com/menu/downjquery/" target="_blank">jQuery下载</a></li><li class="nav_submenu-item"> <a href="http://hovertree.com/guestbook/addmessage.aspx" target="_blank">留言</a></li><li class="nav_submenu-item"> <a href="http://hovertree.com/texiao/" target="_blank">特效</a></li></ul></li><li class="nav_menu-item"><a href="http://hovertree.com/hvtart/bjae/48fa7b1b3162a7a4.htm" target="_blank">关于</a><ul class="nav_submenu"><li class="nav_submenu-item"> <a href="http://hovertree.com/shortanswer/" target="_blank">简答题</a></li><li class="nav_submenu-item"> <a href="http://tool.keleyi.com/" target="_blank">工具</a></li><li class="nav_submenu-item"><a href="http://hovertree.com/menu/csharp/" target="_blank">C#</a></li><li class="nav_submenu-item"><a href="http://hovertree.com/hvtart/bjae/g71ha4qs.htm">原文</a></li></ul></li><li class="nav_menu-item"><a href="http://keleyi.com/" target="_blank">柯乐义</a></li><li class="nav_menu-item"><a href="http://hovertree.com/hvtimg/" target="_blank">图片</a></li></ul></nav><!-- 代码 结束 --></body></html>
Copy after login

Usage:

1. Introduce the style sheet file in the head area


2. Add