【问题标题】:Put component next to User Control将组件放在用户控件旁边
【发布时间】:2018-12-19 12:17:35
【问题描述】:

我有一个表,我在其中一行中放置了一个用户控件。我想把一些东西放在它的右边(比如把 td 一分为二)

 <table id="table1" cellspacing="0" cellpadding="0" width="100%" border="0">
   <tr valign="top">
     <td>
    <div>
     <uc3:Quicksportselection ID="QuickSportSelection1" runat="server"></uc3:Quicksportselection>
     </div>
     <div class="sBody">
       <hr />
        <asp:RadioButtonList runat="server" ID="SponsorListRad" RepeatDirection="Vertical"  RepeatLayout="Flow" CssClass="labels">
           <asp:ListItem Text="Eurosport" Value="Eurosport"></asp:ListItem>
           <asp:ListItem Text="Discovery" Value="Discovery"></asp:ListItem>
        </asp:RadioButtonList>
      </div>
  </td>
 </tr>
</table>

这样做会将我的“SponsorListRad”置于 UserControl 之下。怎么把它放在右边呢?

【问题讨论】:

    标签: asp.net .net html-table user-controls


    【解决方案1】:

    &lt;hr&gt; 标签在 HTML 页面中定义了一个主题中断,它用于分隔内容,在这种情况下 - 应该被删除。

    【讨论】:

    • sBody 类中有什么?没有像行分隔符之类的东西吗?
    • 不,没关系,我会在这里停下来。谢谢你的回答
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-21
    • 2018-09-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多