可控制导航下拉方向的jQuery下拉菜单代码
效果: http://hovertree.com/texiao/nav/1/ 代码如下: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>可控制导航下拉方向的jQuery下拉菜单代码 - 何问起</title> <base target="_blank" /> <style> .nav * { margin: 0; padding: 0; list-style: none; } .nav { width: 700px; height: 30px; line-height: 30px; margin: 2px auto; } .nav li a { color: #fff; text-decoration: none; display: block; float: left; height: 30px; line-height: 30px; padding: 0px 15px; font-size: 12px; background: #636871; } .nav li a:hover { background: #4b505a; } .nav li { float: left; position: relative;