C#ASP.Net RadioButtonList的表中:其中; TD&GT;边境也造成边境arount列表项 [英] C# ASP.Net RadioButtonList within table: <td> border also creating border arount LIST ITEMS
问题描述
我创建了一个表的边界崩溃围着桌子和每一个细小的灰色边框。然而,边界也围绕每个单选按钮的项目。单选按钮的边框属性似乎影响另一个边界。如何删除从单选按钮列表项的标签创建的边界?在此先感谢!
&LT; TR&GT;
&所述; TD列跨度=2&GT;
&LT; ASP:标签ID =lblJoint的CssClass =boldIt=服务器文本=这是一个联名账户?风格=浮动:左;宽度:200像素;&GT;&LT; / ASP:标签&gt;&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;
&LT; ASP:RadioButtonList的ID =rdlJoint=服务器RepeatDirection =水平WIDTH =130px的风格=浮动:左;边框样式=无&GT;
&LT; ASP:ListItem的&GT;是&LT; / ASP:ListItem的&GT;
&LT; ASP:列表项选择=真&GT否LT; / ASP:ListItem的&GT;
&LT; / ASP:RadioButtonList的&GT;
&LT; / TD&GT;
&LT; / TR&GT;
使用流量
RepeatLayout为RadioButtonList的或为其创建新的CSS类:表.noBorder TD {边界:无; }
和使用这个类为您RadioButtonList的
I have created a table with borders collapsed around the table and a small gray border on each . However the border is also surrounding each radio button items. The border attribute on the radio button appears to affect another border. How do I delete the border created on the tag from the radio button list items? Thanks in advance!
<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>
Use Flow
RepeatLayout for RadioButtonList or create new css class for it : table.noBorder td { border: none; }
and use this class for your radiobuttonlist
这篇关于C#ASP.Net RadioButtonList的表中:其中; TD&GT;边境也造成边境arount列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!