菜单控件颜色显示问题
发表在ASP.NET图书答疑 2009-08-15
是否精华
版块置顶:
        老师:
             您好!
             菜单控件(menu)当前动态弹出式菜单颜色显示为白色, 代码片段如下,请老师速赐教!!!谢谢!!!
                                   <asp:Menu ID="Menu1" runat="server" BorderStyle="Outset" BackColor="DarkTurquoise" DataSourceID="SiteMapDataSource1" DynamicHorizontalOffset="2" Font-Names="宋体" 
                                             Font-Size="Small" DynamicSelectedStyle-BackColor="gold" DynamicHoverStyle-ForeColor="Red" DynamicMenuItemStyle-ForeColor="Yellow" ForeColor="LightGreen" Orientation="Horizontal" StaticDisplayLevels="2" DynamicHoverStyle-BorderColor="AliceBlue"
                                             StaticSubMenuIndent="5px" BorderColor="Blue">
                                        <StaticMenuItemStyle BackColor="DeepSkyBlue" BorderStyle="Solid" HorizontalPadding="2px" VerticalPadding="2px" ForeColor="#FFFFC0" />
                                        <DynamicHoverStyle BackColor="Violet" BorderStyle="Groove" ForeColor="Red" BorderColor="AliceBlue" />
                                        <DynamicMenuStyle BackColor="Peru" BorderStyle="Groove" BorderColor="Fuchsia" />
                                        <StaticSelectedStyle BackColor="#FF8000" BorderStyle="Outset" ForeColor="#FFC0FF" />
                                        <DynamicSelectedStyle BackColor="#C04000" ForeColor="#FFFF80" />
                                        <DynamicMenuItemStyle BackColor="Olive" BorderStyle="Outset" HorizontalPadding="2px" VerticalPadding="2px" ForeColor="Yellow" />
                                        <StaticHoverStyle BackColor="#00C000" BorderStyle="Outset" ForeColor="Orange" />
                                        <StaticMenuStyle BackColor="LightCoral" />
                                   </asp:Menu>
分享到:
精彩评论 1
Confidence2009
学分:0 LV1
2009-08-15
沙发
(menu)控件有样式设置,可以自动选择样式的!
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照