我为布局和文本大小创建了一个基本样式表,并为样式创建了几个ASP.Net主题。由于某种原因,除了“我的帐户”元素之外,其他所有菜单元素都可以正常工作。即使是子菜单项也能正常工作。

/*Basic CSS menu Layout*/
#Menu
{
font-size: 24pt;
height: 48px;
width: 1000px;
color: White;
background-color: Black;
}
#Menu a
{
color: White;
text-decoration: underline;
width: 224px;
height: 48px;
}
#Menu a:visited
{
color: White;
text-decoration: none;
}
#Menu a:hover
{
color: White;
font-style: italic;
}
/*StyleSheetTheme menu layout*/
#Menu a
{
background-image: url('Menu_Default.png');
background-repeat: no-repeat;
}
#Menu a:hover
{
background-image: url('Menu_Default.png');
background-repeat: no-repeat;
}
#Menu a:visited
{
background-image: url('Menu_Default.png');
background-repeat: no-repeat;
}
#Menu a:active
{
background-image: url('Menu_Default.png');
background-repeat: no-repeat;
}发布于 2011-12-07 17:12:16
斜体文本是“bug”吗?这是在悬停展开菜单时出现的吗?这就是你的罪魁祸首;
font-style: italic;
https://stackoverflow.com/questions/8411558
复制相似问题