Asp.net default theme css menu problem

2019-09-07 04:07发布

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条回答
forever°为你锁心
2楼-- · 2019-09-07 04:37

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>
查看更多
登录 后发表回答