带引导程序的ASP.NET菜单控件不显示DynamicPopOutImage。 我试图显示默认图像或我的自定义图像。它不呈现。菜单是从数据库构建的。
<div style="float:left">
<asp:Menu ID="mainMenu" runat="server"
Orientation="Horizontal"
RenderingMode="List"
IncludeStyleBlock="false"
StaticDisplayLevels="1"
DynamicEnableDefaultPopOutImage="true"
DynamicPopOutImageUrl="Images/arrow.gif"
MaximumDynamicDisplayLevels="3"
EnableViewState="false"
CssClass="nav navbar-fix-top"
StaticMenuStyle-CssClass="nav navbar-nav"
StaticSelectedStyle-CssClass="active"
DynamicMenuStyle-CssClass="dropdown-menu"
SkipLinkText="">
</asp:Menu>
</div>
答案 0 :(得分:0)
想象它
<div style="float:left">
<asp:Menu ID="mainMenu" runat="server"
Orientation="Horizontal"
EnableViewState="false"
CssClass="nav navbar-fix-top"
StaticMenuStyle-CssClass="navbar "
StaticSelectedStyle-CssClass="active"
RenderingMode="List"
DynamicMenuStyle-CssClass="dropdown-menu"
DynamicMenuItemStyle-CssClass="dropdown"
StaticMenuItemStyle-HorizontalPadding="17"
DynamicEnableDefaultPopOutImage="true"
StaticEnableDefaultPopOutImage="false"
StaticMenuItemStyle-BackColor="#F5F5F5"
StaticMenuItemStyle-ForeColor="Black"
StaticMenuItemStyle-BorderStyle="Ridge"
StaticMenuItemStyle-BorderWidth="1"
StaticMenuItemStyle-BorderColor="LightGray"
StaticMenuStyle-VerticalPadding="5"
>
</asp:Menu>
</div>