我为样式创建了一个布局和文本大小的基本样式表和几个ASP.Net主题。出于某种原因,除“我的帐户”元素外,其他所有菜单元素都在工作。即使是子菜单项目也能正常工作。一个非常非常奇怪的CSS/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;
}
你有这个标记吗?或者你是否使用ASP.NET菜单控件?如果菜单是通过自己编写的标记呈现的,那么查看它以确定可能会阻止CSS选择器定位元素的内容会很有用。 – lsuarez
它应该怎么看,它在做什么呢? – jrummell