none
the layout problem with Menu when using css and alert RRS feed

  • 问题

  • hi:

    when i use the vs2010's web project model, some problems come.when i use js just like the follow:

     ClientScript.RegisterStartupScript(this.GetType(), "test", "alert('test!');window.onload=ShowAlert;", true);

    or

    <script type='text/javascript'>
            if (document.all("MainContent_HidBtn").value != "") {
                alert(document.all("MainContent_HidBtn").value);
                document.all("MainContent_HidBtn").value = "";
            }
            window.onload = ShowAlert;
        </script>

    the  item's layout of Menu is changed.

    the normal --the layout is horizontal:

    the problem--the layout is vertical :

    what shouid i do?

    sorry that i can not put picture for the moment.

    2014年6月27日 9:09

全部回复

  • Hi lewang,

    For your code,It seems that  will not change the css style.

    I suggest that you Press F12 to see the css on your menu.

    Best Regards,

    Kevin Shen.

    2014年6月30日 3:31