首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > 跨浏览器开发 >

兼容有关问题

2012-02-15 
兼容问题HTML codebodyform idform1 runatserverdiv stylemargin-left :3pxmargin-top:3px

兼容问题

HTML code
  <body>    <form id="form1" runat="server">    <div style="margin-left :3px;margin-top:3px;">    <center>        <table width="95%" border="0" cellpadding="4" cellspacing="1" bgcolor="#cacaca" class="newfont03">            <tr>                <td colspan="6" align="left" class="TdCaption">                    <asp:Literal ID="Literal1" runat="server" Text="报表查询"></asp:Literal>                </td>            </tr>            <tr>                <td class="Td-text">                    <asp:Literal ID="Literal5" runat="server" Text="分组类型"></asp:Literal>                </td>                <td class="rightTd" colspan = "5">                        <mb:GlobalRadioButton ID="GlobalRadioButton6" runat="server" GroupName="Group" onclick="SelectCarrier()" text="承运商" Checked="True" />&nbsp;                        <mb:GlobalRadioButton ID="GlobalRadioButton7" runat="server" GroupName="Group" onclick="SelectArea()" text="地区" />                        <mb:GlobalRadioButton ID="GlobalRadioButton5" runat="server" GroupName="Group" onclick="SelectCust()" text="客户"/>&nbsp;&nbsp;                        <%--<mb:GlobalRadioButton ID="GlobalRadioButton9" runat="server" GroupName="Group" onclick="SelectCity()" text=""/><br />--%>                        </td>            </tr>            <tr>                <td class="Td-text">                    <asp:Literal ID="Literal3" runat="server" Text="承运商"></asp:Literal>                </td>                <td class="rightTd">                                       <mb:CheckedListBox ID="CheckedListBox2" runat="server" BorderStyle="NotSet" Height="80px" >                        <asp:ListItem Selected="True">Unbound</asp:ListItem>                    </mb:CheckedListBox>                </td>                <td class="Td-text">                    <asp:Literal ID="Literal4" runat="server" Text="地区"></asp:Literal>                </td>                <td class="rightTd">                                      <mb:CheckedListBox ID="CheckedListBox3" runat="server" BorderStyle="NotSet" Height="80px" >                        <asp:ListItem>Unbound</asp:ListItem>                     </mb:CheckedListBox>                </td>                <td class="Td-text">                    <asp:Literal ID="Literal2" runat="server" Text="客户"></asp:Literal>                </td>                <td class="rightTd">                        <mb:CheckedListBox ID="CheckedListBox1" runat="server" BorderStyle="NotSet" Height="80px">                        <asp:ListItem>Unbound</asp:ListItem>                    </mb:CheckedListBox>                </td>            </tr>            <tr>                <td class="style1">                    <asp:Literal ID="Literal6" runat="server" Text="时间段"></asp:Literal>                </td>                <td colspan="5" class ="style2">                                    <div>                        <mb:GlobalRadioButton ID="GlobalRadioButton2" runat="server" GroupName="Time" onClick="CheckedYear()" Text="年"/>                        <mb:GlobalRadioButton ID="GlobalRadioButton3" runat="server" GroupName="Time"                             onClick="CheckedMonth()" Text="月" Checked="True"/>                        <mb:GlobalRadioButton ID="GlobalRadioButton4" runat="server" GroupName="Time" onClick="CheckedDay()" Text="日"/>                    </div>                                              <asp:TextBox ID="FromBeginTime" runat="server" CssClass="txt" onfocus="new WdatePicker(this)">2010-08-01</asp:TextBox>                                                ~                        <asp:TextBox ID="FromEndTime" runat="server" CssClass="txt" onfocus="new WdatePicker(this)" >2010-10-01</asp:TextBox>                                       </td>            </tr>            <tr>             <td class="Td-text">                    <asp:Literal ID="Literal8" runat="server" Text="">查看类型</asp:Literal>                </td>                <td align="left" colspan="5" style="background-color:White;">                       <asp:RadioButtonList ID="RadioButtonList2" runat="server"                         RepeatDirection="Horizontal">                        <asp:ListItem Value="Arrived" Selected ="True" >准时</asp:ListItem>                        <asp:ListItem Value="later" >迟到</asp:ListItem>                        <asp:ListItem Value="PlanArrived">总数</asp:ListItem>                    </asp:RadioButtonList>                </td>            </tr>            <tr>             <td class="Td-text">                    <asp:Literal ID="Literal7" runat="server" Text="图表类型"></asp:Literal>                </td>                <td align="left" colspan="5" style="background-color:White;">                       <asp:RadioButtonList ID="RadioButtonList1" runat="server"                         RepeatDirection="Horizontal">                        <asp:ListItem Value="Column" Selected ="True" >直方图</asp:ListItem>                        <asp:ListItem Value="Pie">饼图</asp:ListItem>                        <asp:ListItem Value="Line">折线图</asp:ListItem>                    </asp:RadioButtonList>                </td>            </tr>            <tr>                <td align="center" colspan="8" style="background-color:White;">                                    <asp:Button ID="Button1" runat="server" Text='Export' CssClass="right-button07"/>&nbsp                   <asp:Button ID="Button2" runat="server" Text="Query" CssClass="right-button07" onclientclick="CheckNotNull()"  onclick="Button2_Click" /><br />                    </td>            </tr>            <tr>                <td align="center" colspan="8" style="background-color:White;">                    <asp:Chart ID="Chart1" runat="server" [color=#FF0000]Width="990px"[/color]   BackColor="211, 223, 240"  BorderColor="#1A3B69" BorderDashStyle="Solid" BackGradientStyle="TopBottom" BackSecondaryColor="White"                        BorderWidth="2px" ImageLocation="~\TempImages\ChartPic_#SEQ(300,3)">                <Series>                    <asp:Series Name="Series1">                    </asp:Series>                </Series>                <ChartAreas>                    <asp:ChartArea Name="ChartArea1">                    </asp:ChartArea>                </ChartAreas>            </asp:Chart>                </td>            </tr>        </table>        </center>        <center >             <div style="width:95%; margin-top:3px">                                </div>        </center>           </div>    </form>    <script language="javascript" type="text/javascript">        //document.getElementById("CheckedListBox1").disabled=true;    //document.getElementById("CheckedListBox3").disabled=true;    </script></body> 



用MsChart控件做报表,Chart的Width属性不能用百分比,怎么设置Width能让网页在17寸和19寸显示器中不出现显示问题

[解决办法]
用CSS设置你主页面下的div,固定宽度不要超过980px。或者将主div设成100%。

热点排行