减少水平Meu中菜单项的间距 [英] Decrease spacing of Menu Items in Horizontal Meu
本文介绍了减少水平Meu中菜单项的间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我正在学习构建ASP.net应用程序,我在网页中使用了水平菜单。
我设计了外观,但现在我想减少菜单项之间的间距...
任何人都可以帮助我。
提前致谢。
这是我的代码: -
Dear All,
I am learning to build ASP.net application and I am using a Horizontal Menu in my web page.
I have designed the look but now i want to decrease the spacing between the menu items...
Can anyone help me in this.
Thanks in advance.
This is my code : -
<asp:Menu runat = "server" CssClass = "menuItem" Orientation = "Horizontal" ID = "Menu1" MaximumDynamicDisplayLevels="5" BackColor="#B5C7DE" Font-Names="Cambria" Font-Size="1em" ForeColor="#284E98" StaticSubMenuIndent="0px" Width="100%" StaticEnableDefaultPopOutImage="false" StaticItemFormatString="{0}" Height="6px" ItemWrap="True">
<Items>
<asp:MenuItem Text = "File" Value="File">
<asp:MenuItem Text=" " Value="Overview" />
<asp:MenuItem Text="Edit" Value="Edit" />
<asp:MenuItem Text="Create" Value="Create" />
<asp:MenuItem Text="Delete" Value="Delete" />
</asp:MenuItem>
<asp:MenuItem Text = "Forms" Value="Forms">
<asp:MenuItem Text="Overview" Value="Overview" />
<asp:MenuItem Text="Edit" Value="Edit" />
<asp:MenuItem Text="Create" Value="Create" />
<asp:MenuItem Text="Delete" Value="Delete" />
</asp:MenuItem>
<asp:MenuItem Text = "Reports" Value="Reports">
<asp:MenuItem Text="Overview" Value="Overview" />
<asp:MenuItem Text="Edit" Value="Edit" />
<asp:MenuItem Text="Create" Value="Create" />
<asp:MenuItem Text="Delete" Value="Delete" />
</asp:MenuItem>
</Items>
<StaticMenuItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="2px" HorizontalPadding="10px" />
</asp:Menu>
推荐答案
嗨!! !
使Width =40%或你想要的!!!!
Hi!!!
make Width="40%" or which you want!!!!
这篇关于减少水平Meu中菜单项的间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文