.Net4.0 ASP Menu Control's StaticHoverStyle Unrendered

本文详细阐述了在使用ASP.NET创建菜单时遇到的样式问题,通过设置菜单控件的'RenderingMode'属性为'Table',成功解决了静态悬停样式无法正常显示的问题,并提供了相关代码示例和参考链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值