| |

VerySource

 Forgot password?
 Register
Search
View: 667|Reply: 1

MENU menu alignment and menu header display problems?

[Copy link]

3

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-22 23:30:01
| Show all posts |Read mode
I used the MENU menu in ASP.NET and used the data source SiteMapDatabase to dynamically create menu sub-items. I don't know what to do with the existing two problems:
1. I want to display the menu title of each menu item. I don't know if it is defined in the map file. I find that the items without URL or role are not displayed. I don't know what to do?
2. The item I define with role can be used as the title, but the title and the sub-item are always misaligned. Please enlighten me?
Reply

Use magic Report

0

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-24 22:15:01
| Show all posts
protected void Page_Load(object sender, EventArgs e)
    {
        //Menu1.StaticPopOutImageUrl = "2.gif";
        Menu2.StaticMenuItemStyle.ItemSpacing=System.Web.UI.WebControls.Unit.Parse("10px");
        //Change the distance of static menu items
        Menu2.DynamicMenuItemStyle.BackColor = System.Drawing.Color.PowderBlue;
        //The background color of the static menu item
        Menu2.DynamicHoverStyle.BackColor = System.Drawing.Color.Red;
        //The background color of the dynamic menu item
        Menu2.StaticEnableDefaultPopOutImage = false;
        //Close the small arrow of static and dynamic menu items
    }
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list