菜单控件对齐 [英] Menu control alignment
本文介绍了菜单控件对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将以下两个菜单控件并排放置在我的母版页上,这只是没有发生,它们彼此对齐,我该如何做到这一点?
我使用两个控件而不是一个控件的原因是因为我需要在运行时在代码后面隐藏其中一个控件:::
I need to place the following two Menu controls side by side on my master page, which is just not happening, they get aligned one below another how do i accomplish this?
the reason i am using two controls instead of one is because I need to hide one of them at code behind at runtime:::
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
<asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
</Items>
</asp:Menu>
<asp:Menu ID="NavigationMenu2" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/FAQ.aspx" Text="FAQ"/>
<asp:MenuItem NavigateUrl="~/Contact.aspx" Text="Contact Us"/>
</Items>
</asp:Menu>
谢谢
Chetan.
thanks
Chetan.
推荐答案
Chetan,
你能把它们放在桌子上吗? <表>< tbody> tr< td>菜单/td< td>菜单//td</tr</tbody</table> ?
Hi Chetan,
Could you just put them in a table? <table><tbody><tr><td>menu</td><td>menu</td></tr></tbody></table> ?
这篇关于菜单控件对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文