我已经创建了一个使用solpartmenu的皮肤。在使用子菜单的门户上,我在不同的浏览器中得到了不同的行为:在IE和Firefox上,子菜单就在父项的下方,正如我所期望的那样。然而,在Safari和Chrome上,会出现在页面的最左边。我不认为我的CSS做了什么太奇怪的事情,但我似乎遗漏了一些东西。这里有一个例子:http://www.codeswell.com/tpabuilders。我已经在下面添加了我的solpartmenu样式。我可以添加完整的皮肤代码/CSS,如果需要。
有谁能解释一下这件事吗?
/* SolPartMenu styles */
.MainMenu_MenuItem
{
cursor: pointer;
background-color: White;
color: #006309;
font-family: Times New Roman;
font-size: 14px;
font-weight: bold;
}
.MainMenu_RootMenuItemActive
{
text-decoration: underline;
}
.MainMenu_RootMenuArrow
{
display: none;
}
.MainMenu_MenuIcon
{
width: 0px;
height: 0px;
}
.MainMenu_MenuArrow
{
display: none;
}
.MainMenu_MenuItemSel
{
cursor: pointer;
background: White;
color: Maroon;
font-family: Times New Roman;
font-size: 14px;
font-weight: bold;
}发布于 2009-05-14 16:25:12
我建议尝试在菜单项上设置一个明确的宽度。我注意到Chrome中显示的子菜单项的宽度约为1600px --这就是它被推到这么远的原因。
另外,我觉得我不得不说,我不推荐在你的DotNetNuke导航中使用SolPartMenu。有更好的替代方案。你会一直对SolPartMenu感到头疼,从我的经验来看,这是不值得的。
商用DNN菜单(现在是核心菜单) (some documentation)
)
https://stackoverflow.com/questions/863757
复制相似问题