Drupal下拉菜单

时间:2013-09-18 23:29:02

标签: css3 drupal drop-down-menu

我的下拉菜单遇到问题。我希望在一个下拉列表中有多个列。

http://jsfiddle.net/Ru3Zv/这是我正在使用的内容。

 #navigation-primary > ul > li > h2, #navigation-primary > ul > li > a {
/* font-size of the first level */
font-size: 1em;
line-height: 40px;
}
#navigation-primary > ul > li > h2 > a, #navigation-primary > ul > li > a {
/* links of the first level */
/* text-transform: uppercase; */
color:white;
font-weight: bold;
text-decoration:none;
/* background: #156aa3; */
background: #1f1f1f;
}
#navigation-primary > ul > li > a.active, #navigation-primary > ul > li > h2 > a.active {
/* active state of the first level */
background:#1f1f1f;
color:#fff;
}
#navigation-primary > ul > li > a:hover, #navigation-primary > ul > li > h2 > a:hover, #navigation-primary > ul > li:hover > a, #navigation-primary > ul > li:hover > h2 > a {
/* hover state of the first level */
background:#1f1f1f;
color:#fff;
}
#navigation-primary .mega a {
/* links color inside panel */
color:white;
}
#navigation-primary .mega a:hover {
/* :hover on links inside panel */
color:white;
/* text-decoration:underline; */
font-size:1.10em
}
#navigation-primary .mega ul.megamenu-2 a {
/* color:#4c4b4b;*/
/* This is the color of the submenu items */
color:#ffffff;
}
#navigation-primary h3, #navigation-primary li.menu-section-title > a {
/* primary links subsection titles */
font-size:1.0em;
/* text-transform:uppercase; */
font-weight: bold;
text-decoration:none
}
#navigation-primary li.menu-leaf-list {
/* child links inside the panel */
/* border-bottom: 1px dashed #e2e2e2;*/
}
.mega {
/* border-top: 10px solid #1f1f1f; */
border-bottom: 4px solid #1f1f1f;
border-left:1px solid #1f1f1f;
/* border-right:1px solid #ccc; */
background:#1f1f1f;
white-space:nowrap !important;
width:auto !important;
}

在“服务”菜单下,我希望有一列包含托管服务,然后是下面带下划线的链接,然后在第二列中有咨询服务,下面是其余带下划线的链接。这类似于http://www.workday.com/

为了得到这个,我需要改变什么?

2 个答案:

答案 0 :(得分:1)

试试这个模块。这可能有所帮助。

https://drupal.org/project/megamenu

示例:

http://www.aaml.org/

答案 1 :(得分:0)

对于一个下拉菜单下的多个列,请使用“tb mega menu”。仅适用于drupal 7。 https://drupal.org/project/tb_megamenu