html - CSS 下拉菜单对齐方式

标签 html css

我在下拉菜单中有 CSS

#templatemo_menu {
display: block;
width: 910px;
height: 60px;
margin:0px;
padding:0px;
background: #4c4032 url(images/templatemo_menu_background.gif) no-repeat;
}

#templatemo_menu li{
list-style:none;
float:left;
position:relative;
}

#templatemo_menu ul {
padding: 15px 0 0 0;
margin: 0 0 0 120px;
list-style: none;
}
#templatemo_menu ul li a{   
padding: 0 30px;
font-size: 13px;
font-weight: bold;
text-align:center;
text-decoration:none;
color: #FFFFFF;
display:block;

}

#templatemo_menu ul ul{

position:absolute;
left:0px;
display:none;

}

悬停在父框上时控制导航栏中的子框

#templatemo_menu ul li:hover ul{
color: #fe551e;
display:block;

}

#templatemo_menu li a:hover, #templatemo_menu li .current{
color: #fe551e;
}

我的问题是:与 parent 不一致

检查链接 = http://charity.teleoutsourcing.com/Charities/index.php

最佳答案

#templatemo_menu ul ul 中删除边距

这将解决您的问题。

关于html - CSS 下拉菜单对齐方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32627271/

相关文章:

css - 否决溢出 :hidden

css - 垂直对齐头痛

javascript - 如何模糊除列表项之外的整个主体?

jquery - 在 jQuery Mobile 1.3.0 中更改按钮主题

python - python BaseHttpServer 支持 Html5 吗?

javascript - 使用phonegap 和 Jquery/html Canvas 对窗口进行锐化

html - 纯 CSS 根据该单元格中的值设置表格单元格中文本的样式 - 不能使用脚本

javascript - 如果未选择,则删除强制选项

css - 为什么 noverblaster 视频播放器总是在其他元素之上

html - 如何固定导航和右侧 block ,同时保持整个容器居中?