Sus*_*san 0 c# asp.net radiobuttonlist html-table border
我创建了一个桌子,桌子周围折叠着边框,每个桌子上都有一个小灰色边框<td>.然而,边界也围绕每个单选按钮项目.单选按钮上的border属性似乎会影响另一个边框.如何<td>从单选按钮列表项中删除标签上创建的边框?
<tr>
<td colspan="2">
<asp:Label ID="lblJoint" CssClass="boldIt" runat="server" Text="Is this for a joint account?" style="float: left; width: 200px;"></asp:Label>
<asp:RadioButtonList ID="rdlJoint" runat="server" RepeatDirection="Horizontal" Width="130px" style="float: left;" BorderStyle="None">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem Selected="True">No</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
Flow对RadioButtonList 使用RepeatLayout或为它创建新的css类:table.noBorder td { border: none; }并将此类用于您的radiobuttonlist
| 归档时间: |
|
| 查看次数: |
7906 次 |
| 最近记录: |