Menus' hover style's Rendering depends on the sequence of the css
来源:互联网 发布:在线充值系统网站源码 编辑:程序博客网 时间:2024/06/03 05:57
As using "asp:Menu" control, the hover style for sub-menus is really very useful for making a good using experience.
But at first it makes me crazy,. I use the following codes:
<asp:Menu ...>
<DynamicHoverStyle CssClass="dhs">
...
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="FirstLevelMenu" />
<asp:MenuItemStyle CssClass="SecondLevelMenu" />
<asp:MenuItemStyle CssClass="ThirdLevelMenu" />
</LevelMenuItemStyles>
</asp:Menu>
The css content:
.FirstLevelMenu{..}
.SecondLevelMenu{..}
.dhs{ background-color:gray;}
.ThirdLevelMenu{...}
But the "dhs" style never works on the third level menus.
Solution is changing the sequence of the style class "dhs" and "ThirdLevelMenu“:
.FirstLevelMenu{..}
.SecondLevelMenu{..}
.ThirdLevelMenu{...}
.dhs{ background-color:gray;}
- Menus' hover style's Rendering depends on the sequence of the css
- Still rendering hover style when you move to the sub-menu
- To get the tree list of the objects on which an object depends
- Vmware :Cannot open the disk 'xxx.vmdk' or one of the snapshot disks it depends on
- cannot open the disk XXX or one of the snapshot disks it depends on
- VMware “Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on.”
- Cannot open the disk 'F:\vmvare2\shared40' or one of the snapshot disks it depends on.
- Rendering views on the screen
- It Depends Deciding on the Correct Ratio of Developers to Testers
- The Elements of Style
- The Elements of Style
- The Elements of Style
- A Brief Discussion on”Chinese-Style of Crossing The Road”
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock
- VMWare遇到“Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to ”
- Cannot open the disk 'D:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on
- vmware:Cannot open the disk 'XXX' or one of the snapshot disks it depends on. reason: failed to lock
- VMware启动报错one of the snapshot disks it depends on ...Failed to lock the file
- 潜入微软总部 感受微软企业文化
- Tomcat6.x 不显示详细日志的问题
- 调试MTK的gprs,即socket通信
- 【转】module_param()用法
- linux常用命令总结
- Menus' hover style's Rendering depends on the sequence of the css
- 你没看错:Instagram图标变成真相机
- Y450安装mac os
- 淘宝的数据库拆分(TDDL)
- hdu 1255 覆盖的面积(矩形面积并,多次覆盖)
- MTK串口通信调试
- 【转】crosstool These critical programs are missing or too old: as ld 问题
- 黑马程序员 构造方法
- 设计模式C++描述----15.策略(Strategy)模式