2015-06-12 60 views
-1

我開發的網站與ASP.Net和已創建一個彈出日曆它在哪裏工作,成功在Internet Explorer .. Bbut它在Chrome如何使網站兼容所有的瀏覽

<script type="text/javascript"> 

     function asdf() { 
      var div = document.getElementById('<%=Div2.ClientID %>'); 
      if (div.style.display !== 'none') { 
       div.style.display = 'none'; 
      } else { 
       div.style.display = 'block'; 
      } 
     } 
    </script> 

不同工作和它的代碼圖像日曆和日曆本身

<img alt="Pilih Tanggal" src="images/calendar.png" style="position:absolute;" onclick="javascript:asdf();" /> 
      <div id="Div2" runat="server" style="position:absolute; float:left;" > 
        <asp:Calendar ID="Calendar3" style="position:absolute;" runat="server" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="FirstTwoLetters" 
        Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="173px" 
        ShowGridLines="True" Width="225px" 
        OnSelectionChanged = "Calendar3_SelectionChanged" 
        ToolTip="Pilih Tanggal Log File Yang Akan Dilihat" 
        onvisiblemonthchanged="Calendar3_VisibleMonthChanged"> 
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" /> 
        <SelectorStyle BackColor="#FFCC66" /> 
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" /> 
        <OtherMonthDayStyle ForeColor="#CC9966" /> 
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" /> 
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" /> 
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
        ForeColor="#FFFFCC" /> 
       </asp:Calendar> 
      </div> 

任何人都可以幫我解決這個問題嗎?

回答