如何在IE6中使用CSS [英] How to use CSS in IE6
本文介绍了如何在IE6中使用CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,我使用的是更新面板中的进度条.当我单击提交"按钮时,应禁用背景窗口,并显示进度条.
我为此使用CSS,但是该应用程序在Mozila上运行良好,并且在Internet Explorer 6中不受支持.任何人都可以帮助解决此问题.
这是代码:
Hi,
In my project I am using the progress bar inside the update panel. When I click the submit button the back ground window should be disabled and the progress bar should be displayed.
I used CSS for this but the application works fine in Mozila and not supported in Internet Explorer 6. Can anyone help to solve this problem.
Here is the code:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="fp_t012stk.aspx.vb" Inherits="fp_t012stk" title="Current Stock Report" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/JavaScript" language="JavaScript">
function ShowProgress()
{
document.getElementById(''<% Response.Write(UpdateProgress1.ClientID)%>'').style.display = "inline";
document.getElementById (''Layer1'').style.display =''none'';
document.getElementById (''Layer1'').style.position=''fixed'';
document.getElementById (''Layer1'').style.top=''45px'';
document.getElementById (''Layer1'').style.left=''0px'';
document.getElementById (''Layer1'').style.width= ''100%'';
document.getElementById (''Layer1'').style.height= ''100%'';
document.getElementById (''Layer1'').style.background = "rgba(255,255,255,0.8)";
document.getElementById (''Layer1'').style.display = ''block'';
document.getElementById (''Layer1 '').style.verticalAlign = ''middle'';
document.getElementById (''Layer1 '').style.textAlign =''center'';
document.getElementById (''Layer1'').style.padding = ''0px'';
document.getElementById (''Layer1'').style.font =''14px/1.6 Monaco, Courier, MonoSpace'';
document.getElementById (''Layer1'').style.margin =''0px 0px 0px 0px'';
document.getElementById (''Layer1'').style.background ="rgba(0,0,0,0.8)";
document.getElementById (''Layer1'').style.color =''grey'';
document.getElementById (''Layer1'').style.width= ''100%'';
document.getElementById (''Layer1'').style.height= ''100%'';
document.getElementById (''Layer1'').style.overflow =''auto'';
document.getElementById (''Layer1'').style.textDecoration = ''none'';
document.getElementById (''Layer1'').style.color = ''#00ccff !important'';
document.getElementById (''Layer1'').style.position =''absolute'';
document.getElementById (''Layer1'').style.top = ''45px'';
document.getElementById (''Layer1'').style.left = ''0%'';
document.getElementById (''Layer1'').style.marginLeft = '' -50px'';
}
</script>
<div id="MainDiv">
<asp:ScriptManager id="ScriptManager1" AsyncPostBackTimeout="0" runat="server">
<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<tr><td align="right"><asp:Label id="Label7" runat="server" CssClass="css_normalLabel" __designer:wfdid="w124" Text="*Branch:" Width="1px"></td><td align="left"><asp:DropDownList id="Drp_Branch" runat="server" CssClass="css_dropdown" __designer:wfdid="w125" Width="272px" AutoPostBack="True">
</td><td style="WIDTH: 148px" align="left"></td><td align="left"></td><td align="left"></td><td align="left"></td><td align="left"></td><td align="left"></td></tr><tr><td align="right"><asp:Label id="Label4" runat="server" CssClass="css_normalLabel" __designer:wfdid="w126" Text="*Warehouse:" Width="90px"></td><td align="left"><asp:DropDownList id="Drp_Ware_CD" runat="server" CssClass="css_dropdown" __designer:wfdid="w127" Width="275px" AutoPostBack="True">
</td><td style="WIDTH: 148px" align="right"><asp:Label id="Label2" runat="server" CssClass="css_normalLabel" __designer:wfdid="w128" Text="*Stock Type:" Width="75px"></td><td align="left"><asp:DropDownList id="Drp_Stk_Type" runat="server" CssClass="css_dropdown" __designer:wfdid="w129" Width="93px">
<asp:ListItem>All
<asp:ListItem Value="G">Good
<asp:ListItem Value="D">Defective
<asp:ListItem Value="A">OOW Good
<asp:ListItem Value="B">OOW Defective
</td><td align="left"> <asp:Label id="Label8" runat="server" CssClass="css_normalLabel" __designer:wfdid="w130" Text=" Serial # Required ?:" Width="115px"></td><td align="left"><asp:DropDownList id="Drp_Uslno_ID" runat="server" CssClass="css_dropdown" __designer:wfdid="w131">
<asp:ListItem Value="N">No
<asp:ListItem Value="Y">Yes
</td><td align="left">
<asp:Button id="btnReport" runat="server" CssClass="css_button" __designer:wfdid="w132" Text="PRINT" OnClientClick="ShowProgress()"></td><td align="left"><asp:Button id="btnExcel" runat="server" CssClass="css_button" __designer:wfdid="w133" Text="Excel"></td></tr> <td></td>
<hr class="css_horizontalruleDown" />
<asp:Label id="lblmsg" tabIndex=-1 runat="server" ForeColor="Red" Font-Bold="True" CssClass="css_MessageLabel" __designer:wfdid="w134"><tr><td style="HEIGHT: 14px" colspan="3"></td></tr><tr><td align="left" colspan="3">
</td></tr></contenttemplate>
<triggers>
<asp:PostBackTrigger ControlID="btnReport">
<asp:PostBackTrigger ControlID="btnExcel">
</triggers>
</div>
<asp:UpdateProgress id="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server" DisplayAfter="0">
<progresstemplate>
<div id="Layer1">
<p>
Loading Please wait</p>
<asp:Image ID="imgloading" runat="server" ImageUrl="~/images/ajax-loader2.gif" /><br />
</div>
</progresstemplate>
<br />
在此先感谢您
Thanks in advance
推荐答案
仍然没有提供任何线索或错误消息,因此我为您提供一般性的修复程序链接,因此请选择正确的&自己解决问题.
最终IE6备忘单:如何修复25 + Internet Explorer 6错误 [解决IE6问题的10个修复程序 [使用CSS修复所有问题:20多个常见错误和修复程序 [ 9个最常见的IE错误以及如何修复它们 [ Internet Explorer CSS错误修复 [ IE6 – CSS错误和修复说明 [每次都会得到您的IE CSS错误 [ ^ ]
免费附件
Internet Explorer 6倒计时-使世界脱离Internet Explorer 6 [
Still you didn''t give us any clue or error message so I give general fix links for you, so pick the right one & fix the issue yourself.
Ultimate IE6 Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs[^]
10 Fixes That Solve IE6 Problems[^]
Using CSS to Fix Anything: 20+ Common Bugs and Fixes[^]
9 Most Common IE Bugs and How to Fix Them[^]
Internet Explorer CSS bug fixes[^]
IE6 – CSS Bugs and Fixes Explained[^]
IE CSS Bugs That’ll Get You Every Time[^]
Free attachment
The Internet Explorer 6 Countdown - Moving the world off Internet Explorer 6[^]
Microsoft :((
这篇关于如何在IE6中使用CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文