开发者

Prevent ASP.NET Menu from appearing in a new line

I've got a page with rows of image buttons representing various functionality.

I'd like to add a Menu at the end of each row that will represent extra dynamic c开发者_JAVA技巧onfigurable actions.

How can I make the root menu item appear after the image buttons in the same row instead of appearing in the row/line below? I tried with:

.Menu {display: inline-block;}

but it doesn't really make any difference....


I've never used <asp:menu>, but I just played around with one. Looks like it renders as an html <table> by default, with each item contained in a <td style="white-space:nowrap;width:100%;">.

The 100% width is probably forcing it to a new line. Change the style declaratively in design view, programmatically in the code-behind, or override it via a stylesheet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜