How to style an asp.net menu with CSS

前端 未结 11 1255
囚心锁ツ
囚心锁ツ 2020-11-30 00:36

I\'m in the process of styling an asp.net menu and I\'m trying to understand the meaning of the StaticSelectedStyle-CssClass and StaticHoverStyle-CssClass parameters.

<
11条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 01:32

    Just want to throw something in to help people still having this problem. (for me at least) the css is showing that it puts default classes of level1, level2, and level3 on each piece of the menu(level 1 being the menu, level2 being the first dropdown, level3 being the third popout). Setting the padding in css

    .level2
    {
    padding: 2px 2px 2px 2px;
    }
    

    does work for adding the padding to each li in the first dropdown.

提交回复
热议问题