浏览器功能? [英] Browser Capabilities?

查看:76
本文介绍了浏览器功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,我正在ASP.net中开发一个网页.在这种情况下,我正在使用面板控件.输出在IE5中以正确的格式显示,但在Firefox中我没有得到相同的输出...请给我一个解决方案

在Firefox中

在IE5中



我正在使用此asp代码进行面板控制

< tr>
< td colspan ="2" align ="center">< div>
< asp:Panel ID ="Panel1" runat ="server" Height ="50px" Width ="1000px" BackColor ="Silver" GroupingText ="Search Result">
< asp:GridView ID ="GridView1" runat =服务器" BackColor =#CCCCCC" BorderColor =#999999" BorderStyle ="Solid" BorderWidth ="3px" CellPadding ="4" Width ="705px" CellSpacing ="2"ForeColor =" Black"AutoGenerateColumns =" False"PageSize =" 5>
<专栏>
< asp:BoundField ReadOnly = True HeaderText =员工姓名" DataField =名字"/>
< asp:BoundField ReadOnly = True HeaderText ="Designation" DataField ="designation" SortExpression ="desig"/>
< asp:BoundField ReadOnly = True HeaderText ="WorkExperience" DataField ="workexp" SortExpression ="wrexp"/>
< asp:BoundField ReadOnly = True HeaderText ="EmployeeID" DataField ="empid" SortExpression ="empid"/>
< asp:BoundField ReadOnly = True HeaderText ="Technology" DataField ="technology" SortExpression ="tech"/>
< asp:BoundField ReadOnly = True HeaderText ="Domain" DataField ="domain" SortExpression ="domain"/>
</列>
< FooterStyle BackColor =#CCCCCC"/>
< RowStyle BackColor ="White"/>
< SelectedRowStyle BackColor =#000099" Font-Bold ="True" ForeColor ="White"/>
< PagerStyle BackColor =#CCCCCC" ForeColor ="Black" Horizo​​ntalAlign ="Left"/>
< HeaderStyle BackColor ="Black" Font-Bold ="True" ForeColor ="White"/>
</asp:GridView>
</asp:Panel></div>
</td>
</tr>

Hi sir I''m developing a web page in ASP.net. In that I''m using panel control. Output is displayed correct format in IE5 but in firefox I''m not getting the same output... please give me a solution

In Firefox

In IE5



I’m using this asp code for panel control

<tr>
<td colspan="2" align="center"><div>
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="1000px" BackColor="Silver" GroupingText="Search Result" >
<asp:GridView ID="GridView1" runat="server" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" Width="705px" CellSpacing="2" ForeColor="Black" AutoGenerateColumns="False" PageSize="5">
<Columns>
<asp:BoundField ReadOnly=True HeaderText="Employeename" DataField="firstname" />
<asp:BoundField ReadOnly=True HeaderText="Designation" DataField="designation" SortExpression="desig" />
<asp:BoundField ReadOnly=True HeaderText="WorkExperience" DataField="workexp" SortExpression="wrexp" />
<asp:BoundField ReadOnly=True HeaderText="EmployeeID" DataField="empid" SortExpression="empid" />
<asp:BoundField ReadOnly=True HeaderText="Technology" DataField="technology" SortExpression="tech" />
<asp:BoundField ReadOnly=True HeaderText="Domain" DataField="domain" SortExpression="domain" />
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<RowStyle BackColor="White" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:GridView>
</asp:Panel></div>
</td>
</tr>

推荐答案

使用CssClass来显示格式.

W3C标准对所有浏览器均有效.
W3C标准 [ ^ ]

如果您对DATA有疑问,请更新不一致的问题.
Use CssClass in order to display formatting.

W3C standards are valid for all browsers.
W3C standards[^]

If you have issue with DATA, please update the question with the inconsistency.


这篇关于浏览器功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆