本文介绍了radiobutton列表的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法降低radiobuttonlist的高度。 RBL2的高度来自表14。任何人都可以建议我。以下是我的代码:
I am unable to reduce the height of radiobuttonlist. The height of the RBL2 is coming out of the table14. Can anyone advice me. The following is my code:
.style14 { border-right: 1px groove #C0C0C0; border-bottom: 1px groove #C0C0C0; background-color:Silver; padding: 1px; width: 260px; height: 24px; Top:167px; Left:243px; border-left-style: groove; border-top-style: groove; position: absolute; border-left-width: 1px; border-top-width: 1px; }
.style13 { height: 16px; }
<table cellspacing="1" class="style14" table id="table14" runat="server"> <tr> <td class="style13"> <asp:RadioButtonList ID="RadioButtonList2" runat="server" Height="10px" RepeatDirection="Horizontal" Width="110px" style="z-index:1;left:145px; top:1px; position:absolute; background-color:InfoBackground; border-bottom-style:inset " onselectedindexchanged="RadioButtonList2_SelectedIndexChanged" Font-Size="X-Small" AutoPostBack="True"> <asp:ListItem>Yes <asp:ListItem>No <asp:Label ID="Label7" runat="server" Font-Size="Small" ForeColor="White" style="z-index: 1; left: 1px; top: 1px; position: absolute; width: 170px" Text="Are you existing member?"> </td> </tr>
rbl的高度超出桌面高度。如何降低RBL的高度
The height of the rbl is coming out of the table height. How to reduce the height of RBL
推荐答案将radioButton的cellPadding和cellSpacing添加到0. Add cellPadding and cellSpacing for radioButton to 0. <asp:RadioButtonList ID="RadioButtonList2" runat="server" Height="10px" RepeatDirection="Horizontal" Width="110px" Style="z-index: 1; left: 145px; top: 1px; position: absolute; background-color: InfoBackground; border-bottom-style: inset;" Font-Size="X-Small" AutoPostBack="True" CellPadding="0" CellSpacing="0">
希望这有帮助......
hope this helps...
更多推荐
radiobutton列表的高度
发布评论