如何使我的“导航”酒吧下拉? [英] How to make my "nav" bar a dropdown?

查看:117
本文介绍了如何使我的“导航”酒吧下拉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有任何想法,他们将真正感激。





这是NAV BARcss:



If anyone ideas they will be truly appreciated.


Here is the "NAV BAR" css:

/*Nav Bar Stuff*/
	
 .wrapper {
    width: 100%;
    height: 80px;
    background : #464646;
    background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
    background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
    border-top: 2px solid #939393;
    margin-bottom: 10px;
	text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

 .fl {
    float: left;
}

 .container {
    width: 840px;
	margin: 0 auto;
}

 .menu {
    height: 80px;
    border-left: 1px solid rgba(0,0,0,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    float:left;
}

 .nav {
    text-decoration: none;
    color: #363636;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: bold;
}

#nav ul {
    margin: 0;
    padding: 0;
}

#nav ul.menu li {
    list-style: none;
    float:left;
    height: 79px;
    text-align: center;
    background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
    background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
    }

#nav ul li a {
    display: block;
    padding: 0 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    line-height: 79px;
    background : -webkit-gradient(linear, left top, left bottom, from(rgb(168,168,168)), to(rgb(69,69,69)));
    background : -moz-linear-gradient(top, rgb(168,168,168), rgb(69,69,69));
    -webkit-transition-property: background;
    -webkit-transition-duration: 700ms;
    -moz-transition-property: background;
    -moz-transition-duration: 700ms;
    }

#nav ul li a:hover {
    background: transparent none;
}

#nav ul[rel=sam1] li a {
    background: #606060;
}

#nav ul[rel=sam1] li a:hover {
    background: transparent none;
}

#nav ul li.active a{
    background: -webkit-gradient(radial, 50% 100%, 10, 50% 50%, 90, from(rgba(31,169,244,1)), to(rgba(0,28,78, 1)) );
    background: -moz-radial-gradient(center 80px 45deg, circle cover, rgba(31,169,244,1) 0%, rgba(0,28,78, 1) 100%);
}









这是网页的样子: http://imgur.com/VsXckBz [ ^ ]

推荐答案

请参阅此链接,您的解决方案可能就在那里。!!

在上面的代码中,它是d oes不包含子级代码,所以现在你需要把你的子级别。

查看此链接。



1. http://blog.jmwhite.co.uk/2009/06/ 12 /创建一个下拉导航菜单/ [ ^ ]

2. http://www.noupe.com/css/multilevel-drop-down-navigation-menus-examples-and-tutorials.html [ ^ ]

3. http://www.ehow。 com / how_8424781_make-dropdown-navigation-bar.html [ ^ ]

4. http://stackoverflow.com/questions/17666290/how-can-i-make-my-horizo​​ntal-导航栏 - 下拉菜单 [ ^ ]
Refer this link your solution is might be there.!!
actully in above code, it does not contain sub level code so now onwords you need to put you sub level.
Check This Links.

1. http://blog.jmwhite.co.uk/2009/06/12/creating-a-drop-down-navigation-menu/[^]
2. http://www.noupe.com/css/multilevel-drop-down-navigation-menus-examples-and-tutorials.html[^]
3. http://www.ehow.com/how_8424781_make-dropdown-navigation-bar.html[^]
4. http://stackoverflow.com/questions/17666290/how-can-i-make-my-horizontal-navigation-bar-a-drop-down-menu[^]


这篇关于如何使我的“导航”酒吧下拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆