【问题标题】:CSS drop down Menu alignmentCSS下拉菜单对齐
【发布时间】:2015-09-17 17:53:49
【问题描述】:

我在下拉菜单中有 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;
}

我的问题是:与父级不一致

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

【问题讨论】:

    标签: html css


    【解决方案1】:

    删除#templatemo_menu ul ul的边距

    这将解决您的问题。

    【讨论】:

    • 我去掉left:0px;但它仍然是一样的,没有对齐
    • 你能在这里更新你的css吗charity.teleoutsourcing.com/Charities/index.php
    • 我更新它已经尝试查看“其他”选项卡除了成就那是我的问题
    • 在 { #templatemo_menu ul ul } 中添加 margin-left:0,它没有显示
    • 它正在工作,谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-30
    • 1970-01-01
    • 1970-01-01
    • 2014-03-20
    • 1970-01-01
    相关资源
    最近更新 更多