本文介绍了菜单列表在IE 8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Visual Studio 2005中设计了一个网站,该网站可以在Internet Explorer(即Internet Explorer)6.0上运行,但是菜单项在IE 8.0中不起作用,该怎么办?

下面给出的代码ID

We design a website in visual studio 2005 working on internet explorer i.e 6.0 but the menu items not working in IE 8.0 what should i do?

the code id given below

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Home.master.cs" Inherits="MasterTemplate_Home" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>:: MAE ::</title>
    <link href="../CSS/MAEWebsite.css" type="text/css" media="screen" rel="Stylesheet" />
    <link href="../CSS/MAEWebsite2.css" type="text/css" media="screen" rel="Stylesheet" />
    <link href="../Admin/CSS/MAEAdmin.css" type="text/css" media="screen" rel="Stylesheet" />
    <script src="../JS/jquery-1.4.2.min.js" type="text/javascript"></script>
    <%--<link  href="../CSS/jquery.jcrop.css" type="text/css"  rel="Stylesheet"/>--%>
    <link  href="../CSS/jquery.jcrop.css" type="text/css" media="screen" rel="Stylesheet"/>
    <script language="javascript">
    function openWin()
    {
    window.open('http://www.maepune.com/Library/index.htm');
    }
    function callhome()
    {
       window.location=Home.aspx;
    }
    function Confirm()
       {
      // alert('hi');http://www.javascript-coder.com/
       window.open ("http://www.softmassonline.co.in","mywindow","status=1");
       }
    </script>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
   <%-- <style type="text/css">
    body
    {
    background-color: Silver;
    }
    </style>
    <style type="text/css">
    .IE8Fix
    {
    z-index: 100;
    }
    </style>--%>
</head>
<body >
    <form id="form1" runat="server">
        <div align="center">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="~/GService.asmx" />
                </Services>
            </asp:ScriptManager>
            <table border="0" cellpadding="0" cellspacing="0">
                <%--<tr class="logoTR">--%>
                <tr>
                    <td style="width: 982px; height: 94px;">
                        <table class="topBannerBackground" cellpadding="0" cellspacing="0">
                            <tr>
                                <%--<td  class="bannerMAELogo" style="width: 72px; padding-top: 50px">--%>
                                <td style="padding-left: 20px; height: 107px;">
                                </td>
                                <td class="tdLogoName" style="width: 100%; height: 107px;" align="left">
                                    <div class="bannerHeader-name">
                                        <span class="style18">
                                            Maharashtra Academy of Engineering ( MAE )</span></div>
                                </td>
                                <td style="width: 153px; height: 107px;">
                                    <br />
                                    <table>
                                        <tr>
                                            <td style="width: 100px; height: 26px;">
                                                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <asp:Button ID="btnSearch" runat="server" Text="Search" CausesValidation="False" /></td>
                                        </tr>
                                    </table>
                                    &nbsp;
                                </td>
                                <td style="height: 107px" >
                                <div style="width: 20px; height: 94px">
                                    </div>
                                    </td>
                                <td style="height: 107px;width:80px">
                                    <div>
                                    </div>
                                     </td>
                                <td style="height: 107px" >
                                   <a href="../Home.aspx"><div class="topHomeLogo" ></div></a>
                                    </td>
                                <td style="height: 107px">
                                    <div style="width: 10px; height: 94px">
                                        </div>
                                </td>
                                <%--<td style="width: 5px; height: 62px;">
                                </td>--%>
                                <%--<td style="width: 50px; padding-bottom: 4px;">
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="customLinkButton" PostBackUrl=""  >Search</asp:LinkButton></td>--%>
                            </tr>
                        </table>
                        </td>
                </tr>
                <tr>
                    <td colspan="2" class="topMenu" style="height: 10px;padding:0px" align="center">
                        <%--<div style="border-bottom:solid 1px #35302D;margin-bottom:10px;width:997px" >--%>
                        <div>
                            <asp:Menu ID="Menu1" Orientation="Horizontal" runat="Server" PathSeparator="="

                                Width="680" Font-Size="12px" Font-Names="Verdana" Font-Bold="true" StaticEnableDefaultPopOutImage="false" StaticDisplayLevels="1" >
                                <%--<StaticMenuStyle CssClass="staticMenuStyle" />--%>
                                <StaticMenuItemStyle HorizontalPadding="20px" />

                                <DynamicMenuItemStyle CssClass="dynamicMenuItemStyle" HorizontalPadding="20px" VerticalPadding="0px" />
                                <Items>
                                    <%--[Start]About MAE--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLine">About MAE</div>' NavigateUrl="~/Home.aspx" Value="About">
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">EDs Message</div>' NavigateUrl="~/StaticPages/frmEDsMessage.aspx" Value="EDs Message" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Principals Message</div>' NavigateUrl="~/StaticPages/frmPrincipalMessage.aspx" Value="Principals Message" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Collaborations</div>' NavigateUrl="~/StaticPages/frmCollaborations.aspx" Value="Collabration" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Mission & Vision</div>' NavigateUrl="~/StaticPages/frmMissionVision.aspx" Value="MissionVision" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Quality Policy</div>' NavigateUrl="~/StaticPages/frmQualityPolicy.aspx" Value="MissionVision" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Why MAE</div>' NavigateUrl="~/StaticPages/frmWhyMae.aspx" Value="MissionVision" />
                                    </asp:MenuItem>
                                    <%--[End]About MAE--%>
                                    <%--[Start]Admission--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLine">Admission</div>' Value="Admission">
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">UG Admission</div>' NavigateUrl="~/StaticPages/frmUGAdmission.aspx" Value="UG Admission" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">PG Admission</div>' NavigateUrl="~/StaticPages/frmPGAdmission.aspx" Value="PG Admissio" />
                                    </asp:MenuItem>
                                    <%--[End]Admission--%>
                                     <%--[Start]Academics--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLine">Academics</div>' Value="Academics">
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Courses</div>' NavigateUrl="" Value="Courses" >
                                             <asp:MenuItem  Text='<div class="tdTopSubMenuLine">UG Courses</div>' NavigateUrl="~/StaticPages/frmUg-cources.aspx" Value="Courses" />
                                             <asp:MenuItem  Text='<div class="tdTopSubMenuLine">PG Courses</div>' NavigateUrl="~/StaticPages/frmPg-cources.aspx" Value="Courses" />
                                        </asp:MenuItem>
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Departments</div>' NavigateUrl="" Value="Departments" >
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Academic Dept.</div>' NavigateUrl="~/StaticPages/frmAcademic-dept.aspx" Value="Courses" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Non Academic Dept.</div>' NavigateUrl="~/StaticPages/frmNon-academic-dept.aspx" Value="Courses" />
                                       <%-- <asp:MenuItem  Text='<div class="tdTopSubMenuLine">HR Dept.</div>' NavigateUrl="~/StaticPages/frmHR.aspx" Value="Courses" />--%>
                                       <asp:MenuItem  Text='<div class="tdTopSubMenuLine">FE Students</div>' NavigateUrl="~/StaticPages/frmFEStudents.aspx?id=1" Value="Courses" />
                                        </asp:MenuItem>
                                        <asp:MenuItem   Text='<div class="tdTopSubMenuLine">Library</div>' NavigateUrl="javascript:openWin();" Target="_self"  Value="Library">
                                       <asp:MenuItem  Text='<div class=""></div>'  Value="Courses" />
                                        </asp:MenuItem>
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Discipline & Conduct</div>' NavigateUrl="~/StaticPages/frmDiscipline-conduct.aspx" Value="Discipline & Conduct" >
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine"></div>'  Value="Courses" />
                                        </asp:MenuItem>
                                    </asp:MenuItem>
                                    <%--[End]Academics--%>
                                     <%--[Start]Research--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLine">Research</div>' Value="Education" NavigateUrl="~/StaticPages/frmResearch.aspx">
                                    </asp:MenuItem>
                                     <%--[End]Research--%>
                                     <%--[Start]Placement--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLine">Placement</div>' Value="Education">
                                    <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Career Advisory Services </div>' NavigateUrl="~/StaticPages/frmPlacements-career.aspx" Value="Career Advisory Services" />
                                    <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Training Cell</div>' NavigateUrl="~/StaticPages/frmPlacements-training.aspx" Value="Training Cell" />
                                    <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Recruiting Companies</div>' NavigateUrl="~/StaticPages/frmPlacements-recruiting.aspx" Value="Recruiting Companies" />
                                    <%--<asp:MenuItem  Text='<div class="tdTopSubMenuLine">Employer</div>' NavigateUrl="~/frmEmployerDetails.aspx" Value="Employer Login" />
                                    <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Employer Registration</div>' NavigateUrl="~/frmEmployerRegistration.aspx" Value="Employer Registration" />
                                    <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Upload Resume</div>' NavigateUrl="~/frmApplyJob.aspx" Value="Upload Resume" />--%>
                                    </asp:MenuItem>
                                     <%--[End]Placement--%>
                                      <%--[Start]Life on Campus--%>
                                    <asp:MenuItem Text='<div class="tdTopMenuLineLastMenu">Life on Campus</div>' Value="Life on Campus" >
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">The E-Campus</div>' NavigateUrl="~/StaticPages/frmE-Campus.aspx" Value="The e-Campus" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Campus Club</div>' NavigateUrl="~/StaticPages/frmcampusclub.aspx" Value="Campus-club" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">News & Events</div>' NavigateUrl="~/frmNewsAndEvents.aspx?id=news12" Value="News & Events" />
                                        <%--<asp:MenuItem  Text='<div class="tdTopSubMenuLine">News & Events</div>' NavigateUrl="~/frmNewsAndEvents.aspx" Value="News & Events" />--%>
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Hostels</div>' NavigateUrl="~/StaticPages/frmHostel.aspx" Value="Hostels" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Sports & Recreation</div>' NavigateUrl="~/StaticPages/frmSport.aspx" Value="Sports & Recreation" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Other Facilities</div>' NavigateUrl="~/StaticPages/frmOtherFacility.aspx" Value="Other Facilities" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Alandi City</div>' NavigateUrl="~/StaticPages/frmAlandiCity.aspx" Value="Aalandi City" />
                                        <asp:MenuItem  Text='<div class="tdTopSubMenuLine">Photo Gallery</div>' NavigateUrl="~/PhotoGallery.aspx" Value="Photo Gallery" />
                                    </asp:MenuItem>
                                    <%--[End]Life on Campus--%>
                                </Items>
                            </asp:Menu>
                            &nbsp;
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="2" style="height: 13px">
                    </td>
                </tr>
                <tr>
                    <td align="right" style="height: 12px; width: 982px;" valign="top">
                        <%--<table style="width: 501px; height: 194px;" >
                <tr>
                <td style="width: 3px">sdasdasd
                </td>
                </tr>
                </table>--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="TDContentPlace" align="left" valign="top" style="height: 113px">
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                        </asp:ContentPlaceHolder>
                        <%--<asp:Panel ID="pnlSuccessMsg" runat="server" BackColor="white" Width="500px">
                        <table width="100%">
                            <tr>
                                <td align="center" valign="middle">
                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td align="center" colspan="3" style="font-weight: bold; font-size: 13pt; height: 14px"
                                                valign="top">
                                                Developers Login<br /><hr class="HRColor" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="3" valign="middle">
                                    <asp:Label ID="lblLogmsg" runat="server" Visible="False"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top" style="width: 157px">
                                                <asp:TextBox ID="txtIDEmail" runat="server" CssClass="customTextBox1" ValidationGroup="val1"

                                                    Width="150px"></asp:TextBox><br />
                                                <asp:RequiredFieldValidator ID="ValReqFieldEmailId" runat="server" ControlToValidate="txtIDEmail"

                                                    Display="Dynamic" ErrorMessage="Enter Email ID" ValidationGroup="val1"></asp:RequiredFieldValidator>
                                            </td>
                                            <td align="left" style="width: 150px" valign="top">
                                                <asp:TextBox ID="txtPassword" runat="server" CssClass="customTextBox1" TextMode="Password"

                                                    ValidationGroup="val1" Width="150px"></asp:TextBox><br />
                                                <asp:RequiredFieldValidator ID="ValReqFieldPswd" runat="server" ControlToValidate="txtPassword"

                                                    Display="Dynamic" ErrorMessage="Enter Password" ValidationGroup="val1"></asp:RequiredFieldValidator>
                                            </td>
                                            <td align="left" style="width: 125px" valign="top">
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td style="width: 100px">
                                                            <asp:LinkButton ID="LinkButton9" runat="server" OnClick="lbtnLogin_Click1" ValidationGroup="val1">
                                        <div class="smallButton"  style="width:70px;">Login</div>
                                        </asp:LinkButton></td>
                                                        <td style="width: 100px">
                                                            <asp:LinkButton ID="LinkButton10" runat="server" CausesValidation="false" OnClick="LinkButton10_Click" >
                                        <div class="smallButton"  style="width:70px;">Back</div>
                                        </asp:LinkButton></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <cc1:roundedcornersextender id="RoundedCornersExtender5" runat="server" bordercolor="#1A3733"

                        corners="All" radius="11" targetcontrolid="pnlSuccessMsg"></cc1:roundedcornersextender>--%>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center" class="trBottomLink"><span style="color: black">|</span>
                        <asp:LinkButton ID="lbtnContactUs" class="style49" runat="server" CausesValidation="False"

                            PostBackUrl="">Careers </asp:LinkButton><span style="color: black">|</span>
                        <asp:LinkButton ID="LinkButton2" class="style49" runat="server" CausesValidation="False">Sitemap </asp:LinkButton>
                        <span style="color: black">|</span>
                        <asp:LinkButton ID="LinkButton3" class="style49" runat="server" CausesValidation="False" PostBackUrl="../StaticPages/frmContactUs.aspx">Contact Us </asp:LinkButton>
                        <span style="color: black">|</span>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="poweredBy" colspan="3" style="height: 45px">
                        <table style="width: 991px">
                            <tr>
                                <td align="left" valign="middle" style="height: 15px">
                                    Copyrights <span class="style9">© 2008 <span class="style9">MAEER's </span>MAE, Pune, India</span>
                                </td>
                                <td align="right" valign="middle" style="height: 15px">
                                    <asp:LinkButton ID="lnkPowered" runat="server" CausesValidation="False" class="ancMyHome1"

                            >Powered by SoftMass</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>


please visit www.maepune.com and check it with ur''s manner in I.E 8.0 .Thank u


please visit www.maepune.com and check it with ur''s manner in I.E 8.0 .Thank u

推荐答案

.linkedMenu
{
    z-index: 100;
}



and add to the menu control (<asp:menu xmlns:asp="#unknown"></asp:menu>)
the following line



and add to the menu control (<asp:menu xmlns:asp="#unknown"></asp:menu>)
the following line

<DynamicMenuStyle BorderStyle="Ridge" BorderWidth="3px" CssClass="linkedMenu" />




这篇关于菜单列表在IE 8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 02:45