C#ASP.Net RadioButtonList的表中:其中; TD>边境也造成边境arount列表项 [英] C# ASP.Net RadioButtonList within table: <td> border also creating border arount LIST ITEMS

查看:159
本文介绍了C#ASP.Net RadioButtonList的表中:其中; TD>边境也造成边境arount列表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个表的边界崩溃围着桌子和每一个细小的灰色边框。然而,边界也围绕每个单选按钮的项目。单选按钮的边框属性似乎影响另一个边界。如何删除从单选按钮列表项的标签创建的边界?在此先感谢!

 < TR>
        &所述; TD列跨度=2>
                < ASP:标签ID =lblJoint的CssClass =boldIt=服务器文本=这是一个联名账户?风格=浮动:左;宽度:200像素;>< / ASP:标签>&安培; NBSP;&安培; NBSP;&安培; NBSP;&安培; NBSP;
                < ASP:RadioButtonList的ID =rdlJoint=服务器RepeatDirection =水平WIDTH =130px的风格=浮动:左;边框样式=无>
                    < ASP:ListItem的>是< / ASP:ListItem的>
                    < ASP:列表项选择=真&GT否LT; / ASP:ListItem的>
                < / ASP:RadioButtonList的>
        < / TD>
    < / TR>


解决方案

使用流量 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>&nbsp;&nbsp;&nbsp;&nbsp;
                <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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆