在下面的代码中,我有一个img,自定义控件和2个gidviews的div部分。当我在谷歌浏览器浏览器中打开时,会显示2个网格视图,而在mozilla中,火狐2网格不显示,也没有滚动条。请帮我解决这个问题。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewDocument.aspx.cs" MasterPageFile="~/PopUpMaster.Master" Inherits="WebApp.Search.ViewDocument" %>
<%@ Register TagPrefix="mas" TagName="Control" Src="~/Search/Fields.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>Details</title>
<style type="text/css">
div.upload {
width: 157px;
height: 57px;
background: url(https://lh6.googleusercontent.com/-dqTIJRTqEAQ/UJaofTQm3hI/AAAAAAAABHo/w7ruR1SOIsA/s157/upload.png);
overflow: hidden;
}
div.upload input {
display: block !important;
width: 157px !important;
height: 57px !important;
opacity: 0 !important;
overflow: hidden !important;
}
div.upload1 {
width: 157px;
height: 57px;
background: url(https://lh6.googleusercontent.com/-dqTIJRTqEAQ/UJaofTQm3hI/AAAAAAAABHo/w7ruR1SOIsA/s157/upload.png);
overflow: hidden;
}
div.upload1 input {
display: block !important;
width: 157px !important;
height: 57px !important;
opacity: 0 !important;
overflow: hidden !important;
}
</style>
<script type="text/javascript" language="javascript">
window.onload = function () {
maximize();
}
function maximize() {
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height);
}
function UpdateImage() {
var Code = document.getElementById('<%= imgname.ClientID %>').value;
PageMethods.buttonclickImage(Code, onSucess, onError);
function onSucess(result) {
//alert("Success");
document.getElementById('<%=docimg.ClientID%>').src = 'data:image/gif;base64, ' + result;
}
function onError(result) {
// alert(result);
// alert('Something wrong.');
}
}
function FileNotexit()
{
alert("File does not exit");
}
</script>
<script type="text/javascript" language="javascript">
function ConfirmOnDelete(item) {
if (confirm("Are you sure to delete: " + item + "?") == true)
return true;
else
return false;
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%--<div id="Div1" runat="server" style="width:1550px; height:600px; overflow:scroll;">--%>
<input type="hidden" id="imgname" runat="server" />
<input id="hidBatchOutReasonID" runat="server" type="hidden" />
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
</asp:ScriptManager>
<input id="hidDocumentID" runat="server" type="hidden" />
<div class="dialog-head">
<a href="javascript:void(self.close())" class="close-dialog">Close</a>
<a href="javascript:void(0)" class="close-dialog">Print</a>
</div>
<div class="content">
<fieldset class="show">
<legend>Document Information</legend>
<table id="Fieldtbl" runat="server" style="width:1200px;height:100px;">
<tr>
<td style="width:600px">
<div ID="imgContainer" runat="server" style="overflow:auto; border: solid 1px black; padding: 10px; margin-bottom: 5px;" >
<img runat="server" id="docimg" width="500" height="400" clientidmode="Static" />
</div>
</td>
<td style="width:200px"></td>
<td style="width:400px">
<div id="FieldCustom" runat="server" style="width:450px; height:400px; overflow:scroll;">
<gmas:GmasFieldsControl ID="gmasFieldsContr" runat="server" />
</div>
</td>
</tr>
</table>
</fieldset>
<fieldset class="show">
<div>
<table id="doctbl" runat="server" style="width:1200px;height:100px;">
<tr>
<td style="width:600px">
<div class="upload" id="docdiv" runat="server">
<asp:FileUpload ID="Doc" runat="server" />
</div>
<asp:Label ID="lblDocSuccessmsg" runat="server">
</asp:Label>
<div class="panel panel-b customers live-search">
<div class="panel-head">
</div>
<asp:GridView Width="100%" runat="server" ID="Ver"
AutoGenerateColumns="false" CellPadding="4"
ForeColor="#333333" ShowFooter="false"
PageSize-Mode="NumericPages" PageSize="10"
PagerStyle-Visible="true" AllowPaging="true"
AllowSorting="true"
OnPageIndexChanging="Ver_PageIndex"
CssClass="mGrid"
PagerStyle-CssClass="pgr" AlternatingRowStyle-
CssClass="alt"
OnRowDataBound = "OnRowDataBound">
<Columns>
<asp:TemplateField HeaderText="ID" ItemStyle-Width="200px" Visible="false" >
<ItemTemplate>
<asp:Label ID="VersionID" runat="server" Text='<%#Eval(ID") %>' >
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText=" Name" ItemStyle-Width="200px" >
<ItemTemplate>
<asp:Label ID="Name" runat="server" Text='<%#Eval("Name") %>' >
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Download" itemstyle-width="150px">
<ItemTemplate>
<asp:LinkButton ID="btnView" runat="server" CommandName="View" Text="Download" CausesValidation="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowDeleteButton="true" ButtonType="Button" />
</Columns>
<HeaderStyle Font-Bold="True" ForeColor="White" />
</asp:GridView>
</div>
</td>
<td style="width:50px;">
</td>
<td style="width:500px;float:right;">
<div class="upload1" id="attchdiv" runat="server">
<asp:FileUpload ID="Upload" runat="server" multiple="true"/>
</div>
<asp:Label ID="lblMessage" runat="server">
</asp:Label>
<div class="panel panel-b customers live-search">
<div class="panel-head">
</div>
<br />
<asp:GridView Width="100%" runat="server"
ID="dwnld" AutoGenerateColumns="false"
CellPadding="4" ForeColor="#333333"
ShowFooter="false"
PageSize-Mode="NumericPages" PageSize="10"
PagerStyle-Visible="true"
OnPageIndexChanging="dwnld_PageIndex"
AllowPaging="true" AllowSorting="true"
CssClass="mGrid"
PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"
OnRowDataBound="Attchdwnld_OnRowDataBound" >
<Columns>
<asp:TemplateField HeaderText="ATID" ItemStyle-Width="200px" Visible="false" >
<ItemTemplate>
<asp:Label ID="AID" runat="server" Text='<%#Eval("AID") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DID" ItemStyle-Width="200px" Visible="false" >
<ItemTemplate>
<asp:Label ID="DID" runat="server" Text='<%#Eval("DID") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="File " ItemStyle-Width="200px" >
<ItemTemplate>
<asp:Label ID="FileName" runat="server" Text='<%#Eval("FileName") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Download" itemstyle-width="150px">
<ItemTemplate>
<asp:LinkButton ID="btnEdit" runat="server" CommandName="View" Text="Download" CausesValidation="false"/>
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowDeleteButton="true" ButtonType="Button" />
</Columns>
<HeaderStyle Font-Bold="True" ForeColor="White" />
</asp:GridView>
</div>
</td>
</tr>
<tr>
<td style="width:50px;">
</td>
<td style="width:500px">
</td>
</tr>
</table>
<asp:Label ID="lbldoc" Visible="false" runat="server"></asp:Label>
</div>
</fieldset>
<div id="CloseDiv" runat="server" style="text-align: center;">
<asp:Button ID="btnSave" Text="Save New" type="submit" class="button" onclick="btnSubmit_Click" runat="server"/>
<span class="cancel">or
<a href="javascript:void(self.close())" class="close-dialog">Cancel</a>
</span>
</div>
<div style="display: none;">
<input type="hidden" name="data[_Token][fields]" value="10703ffb2f05d8311a039c6567c67dacee2ab400%3A"
id="TokenFields92522577" />
</div>
</div><%--</div>--%>
</asp:Content>