紧急,请帮助我.如何使用CSS样式将子菜单置于母版页中? [英] it's urgent please help me.How to put submenu in a master page using css style?
本文介绍了紧急,请帮助我.如何使用CSS样式将子菜单置于母版页中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已在我的母版页中包含一个模板.
现在我想从主菜单获得子菜单.
看看我的母版页中的代码.
i have included a template in my master page.
now i want to have submenu from a main menu.
have a look at the code in my master page.
<div id="menu">
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
我想从blog> sohil然后是sohil> student&教授
和我的css文件代码.
i want to have a submenu from blog>sohil and then sohil>student & professor
and my css file code.
#menu{
width: 1014px;
height: 43px;
padding-top: 30px;
}
#menu ul{
padding-left: 0px;
list-style: none;
padding: 0px 0px 0px 10px;
}
#menu ul li{
display: inline;
}
#menu ul li a{
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
color: #ffffff;
text-align: center;
font-weight: normal;
text-decoration: none;
display: block;
float: left;
width: 124px;
height: 43px;
line-height: 43px;
margin-right: 4px;
background: url(images/menu_bg.png) 0px 0px;
}
#menu ul li a:hover, #menu ul li .active{
color: #ffffff;
background: url(images/menu_bg.png) 0px 43px;
}
请帮我,我已经尝试了很多.
please help me i have tried a lot.
推荐答案
在这里开始 [< ^ ],然后使用Google搜索所需的内容距离不够近.而且永远不要将问题标记为紧急问题:这里的每个人都在有时间时提供帮助,而不是在您有需要时提供帮助.
Start here[^] andn then use Google to search for what you need if that isn''t close enough. And never mark a question as urgent: everyone here helps when they have the time, not when you demand it.
这篇关于紧急,请帮助我.如何使用CSS样式将子菜单置于母版页中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文