如何在表中使用menuItem? [英] How to use menuItem within table?
本文介绍了如何在表中使用menuItem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿伙计们
我试图在表格中使用< asp:MenuItem> ..但是失败了。请问有人可以帮帮我吗?
我想在不同的列中有MenuItemA,B,C和D,但只有一行,我该如何设置它们那里?
Hey guys
I tried severel times to use <asp:MenuItem>.. within a table, but failed. Can anyone help me, please?
I would like to have MenuItem "A", "B", "C" and "D" in differend columns but only in one row, how do I put them there?
<table>
<tr>
<td colspan="4">
<asp:Menu ID="Menu" runat="server" Width="100%" Orientation="Horizontal" MaximumDynamicDisplayLevels="0">
<Items>
<asp:MenuItem Text="A" NavigateUrl="#"></asp:MenuItem>
<asp:MenuItem Text="B" NavigateUrl="#"></asp:MenuItem>
<asp:MenuItem Text="C" NavigateUrl="#"></asp:MenuItem>
<asp:MenuItem Text="D" NavigateUrl="#"></asp:MenuItem>
</Items>
</asp:Menu>
</td>
</tr>
</table>
And如何将每个MenuItem的font-color设置为白色?
And how do I set the font-color to white of each MenuItem ?
推荐答案
检查此提示/ Tric k
数据库驱动的动态菜单控制 [< a href =http://www.codeproject.com/Tips/526004/Database-Driven-Dynamic-Menu-Controltarget =_ blanktitle =New Window> ^ ]
Check this Tip/Trick
Database Driven Dynamic Menu Control[^]
这篇关于如何在表中使用menuItem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文