本文实例讲述了jQuery css实现的蓝色水平二级导航菜单效果。分享给大家供大家参考。具体如下:
这是一款蓝色经典的jQuery CSS实现水平二级导航菜单,相信你会喜欢的,蓝色,超级经典的一种风格,从其它网站上扣下来的,我认为很不错,赶紧分享给大家吧。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/js-css-blue-line-2level-nav-menu-codes/
具体代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>蓝色水平二级导航菜单</title> <style> *{font-size:12px; font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif; } body{margin:0; padding:0; background:white; } img{border:0; } a:link,a:visited,a:active{text-decoration:none; } a:hover{text-decoration:underline; } /********** header **********/ .header{width:100%; background:url(images/header_bg.gif) #ffffff repeat-x 0 0; text-align:center; } .header .padder{width:910px; margin:0 auto; background:url(images/header_bg.gif) #ffffff repeat-x 0 0; padding-bottom:4px; text-align:left; } .header .padder .nav{background:url(images/vertical.gif) repeat-x 0 -36px; height:36px; } .header .padder .navLeftBg{background:urlvertical.gif) no-repeat 0 0; height:36px; } .header .padder .navRightBg{background:url(images/icons.gif) no-repeat right -146px; height:36px; } .header .padder .nav .mainNav{padding-left:24px; position:absolute; } .header .padder .nav .mainNav a:link, .header .padder .nav .mainNav a:visited,.header .padder .nav .mainNav a:active{width:90px; height:36px; display:inline-block; text-align:center; color:#ffffff; font-weight:bold; font-size:14px; line-height:36px; margin-left:11px; } .header .padder .nav .mainNav a:hover{text-decoration:none; } .header .padder .nav .mainNav a.actived:link,.header .padder .nav .mainNav a.actived:visited,.header .padder .nav .mainNav a.actived:hover,.header .padder .nav .mainNav a.actived:active{background:url(images/icons.gif) no-repeat 0 -27px; color:#000000; } .header .padder .secondNav{line-height:21px; text-align:left; } .header .padder .secondNav a{color:#266392; display:in
以上就是jQuery css实现的蓝色水平二级导航菜单效果代码_jquery的内容,更多相关内容请关注PHP中文网(www.php.cn)!