Asp.net default theme css menu problem

2019-09-07 04:02发布

问题:

Net 2.0 default theme in VS 2010, which is blue header and white body, its menu is good, but when the page loads, menu first opens in a disturbing way, and then close in a proper position, this is css problem, if the page is heavy or takes some time, the menu gets disturbed, any body has idea, how to resolve this issue?

Thanks Atif

回答1:

Work around for Menu control load asthetics on slow browsers: JTankers; 2011/06/17

Replace the tag with:

  <body onload="document.getElementById('div_Menu').style.visibility='visible'">

Place the menu control in the following div:

  <div id='div_Menu' style='visibility: hidden'; >
    <asp:Menu ...
  </div>