.Net4.0 ASP Menu Control's StaticHoverStyle Unrendered

来源:互联网 发布:淘宝卖家故意不发货 编辑:程序博客网 时间:2024/05/05 15:15

It has confused me for several days. No matter how hard I rewrite the codes, it seems never compassionate to me.


Google it as "No show asp:Menu StaticHoversSyle", still can't get appropriate answers.


Fortunately at last, Google it with the key word ".Not4.0". I got it.


It should be a bug. The styles can be work only when the menu control's "RenderingMode" property has been set as "Table".


Example codes:

<asp:Menu ID="Menu1" RenderingMode="Table" ...>

<StaticHoverStyle CssClass="staticMenuhover" />

...

</asp:Menu>


References:


http://stackoverflow.com/questions/2655377/how-to-style-an-asp-net-menu-with-css


原创粉丝点击