<tr>
    <td style="height: 38px; width: 4%;" class="MyTd" align="center">
        &nbsp;<asp:Label ID="Label6" runat="server" Height="15px">分析指标:</asp:Label></td>
    <td style="width: 5%; height: 38px;" class="MyTdBlue">
    <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal"
     Width="250px" Height="21px" AutoPostBack="True">
    <asp:ListItem Selected="True">品种之间比例结构分析</asp:ListItem>
    <asp:ListItem>品种内部比例机构分析</asp:ListItem>
    <asp:ListItem>进口量占产量比重分析</asp:ListItem>
    <asp:ListItem>库存量占产量比重分析</asp:ListItem>                                       
    </asp:RadioButtonList></td>
</tr>

根据上面代码显示的四个指标内容很乱,我想一行显示两个,外观好看些,应该怎么修改上面的html语言?(在visual studio2005  ASP.NET环境下开发的)

解决方案 »

  1.   

    <tr>
        <td style="height: 38px; width: 4%;" class="MyTd" align="center">
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td>
        <td style="width: 5%; height: 38px;" class="MyTdBlue">
        <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal"
        Width="250px" Height="21px" AutoPostBack="True">
        <asp:ListItem Selected="True">品种之间比例结构分析 </asp:ListItem>
        <asp:ListItem>品种内部比例机构分析 </asp:ListItem><br/>
        <asp:ListItem>进口量占产量比重分析 </asp:ListItem>
        <asp:ListItem>库存量占产量比重分析 </asp:ListItem>                                     
        </asp:RadioButtonList> </td>
    </tr>
      

  2.   


    <tr> 
        <td colspan="2" style="height: 38px; width: 4%;" class="MyTd" align="center"> 
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td> 
    </tr>
    <tr>
        <td style="width: 5%; height: 38px;" class="MyTdBlue"> 
          <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" 
          Width="250px" Height="21px" AutoPostBack="True"> 
          <asp:ListItem Selected="True">品种之间比例结构分析 </asp:ListItem> 
        </td>
        <td>
          <asp:ListItem>品种内部比例机构分析 </asp:ListItem> 
        </td>
    </tr>
    <tr>
    <td>
        <asp:ListItem>进口量占产量比重分析 </asp:ListItem> 
    </td>
    <td>
        <asp:ListItem>库存量占产量比重分析 </asp:ListItem>                                      
        </asp:RadioButtonList> </td> 
    </tr> 
      

  3.   

    加了<br/>后出错:
    错误 34 验证 (Internet Explorer 6): 元素“br”不能嵌套在元素“radiobuttonlist”中。 C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\Products\MyProjects\Products\Products\Admin\analyse\SupplyFrameAnalyse.aspx 113 93 C:\...\Products\
      

  4.   

    <table>
    <tr> 
        <td style="height: 38px; width: 50%;" class="MyTd" align="center"> 
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td> <td></td>
            </tr>
            <tr>
    <td><asp:RadioButton ID="RadioButton1" runat="server" Text="进口量占产量比重分析" /></td>
    <td><asp:RadioButton ID="RadioButton2" runat="server" Text="库存量占产量比重分析" /></td>
    </tr>
    <tr>
    <td><asp:RadioButton ID="rad3" runat="server" Text="进口量占产量比重分析" /></td>
    <td><asp:RadioButton ID="rad4" runat="server" Text="库存量占产量比重分析" /></td>
    </tr>
    </table>像这种问题以后要自己解决
      

  5.   


     <tr> 
        <td style="height: 38px; width: 4%;" class="MyTd" align="center"> 
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td> 
        <td style="width: 5%; height: 38px;" class="MyTdBlue"> 
        <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" 
        Width="250px" Height="21px" AutoPostBack="True" RepeatColumns="2"
        <asp:ListItem Selected="True">品种之间比例结构分析 </asp:ListItem> 
        <asp:ListItem>品种内部比例机构分析 </asp:ListItem> 
        <asp:ListItem>进口量占产量比重分析 </asp:ListItem> 
        <asp:ListItem>库存量占产量比重分析 </asp:ListItem>                                      
        </asp:RadioButtonList> </td> 
    </tr> 
      

  6.   

    <tr> 
        <td style="height: 38px; width: 4%;" class="MyTd" align="center"> 
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td> 
        <td style="width: 5%; height: 38px;" class="MyTdBlue"> 
        <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" 
        Width="250px" Height="21px" AutoPostBack="True" RepeatColumns="2"
        <asp:ListItem Selected="True">品种之间比例结构分析 </asp:ListItem> 
        <asp:ListItem>品种内部比例机构分析 </asp:ListItem> 
        <asp:ListItem>进口量占产量比重分析 </asp:ListItem> 
        <asp:ListItem>库存量占产量比重分析 </asp:ListItem>                                      
        </asp:RadioButtonList> </td> 
    </tr> 
      

  7.   

    <tr> 
        <td style="height: 38px; width: 4%;" class="MyTd" align="center"> 
            &nbsp; <asp:Label ID="Label6" runat="server" Height="15px">分析指标: </asp:Label> </td> 
        <td style="width: 5%; height: 38px;" class="MyTdBlue"> 
        <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" 
        Width="250px" Height="21px" AutoPostBack="True" RepeatColumns="2"> 
        
        <asp:ListItem Selected="True">品种之间比例结构分析 </asp:ListItem> 
        <asp:ListItem>品种内部比例机构分析 </asp:ListItem> 
        
        <asp:ListItem>进口量占产量比重分析 </asp:ListItem> 
        <asp:ListItem>库存量占产量比重分析 </asp:ListItem>                                      
        </asp:RadioButtonList> </td> 
    </tr> 
    红色字为新添的内容,这样就可以分2列显示了