这应该很容易。你如何集中放射性按钮列表?它过去并不难。 以下HTML不起作用。我错过了什么?
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width:100%">
<tr>
<td style="text-align: center">
<asp:RadioButtonList ID="radUserType" runat="server"
RepeatDirection="Horizontal">
</asp:RadioButtonList>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
答案 0 :(得分:0)
尝试使用td属性:
<td align="center">
<asp:RadioButtonList ID="radUserType" runat="server"
RepeatDirection="Horizontal">
</asp:RadioButtonList>
</td>
答案 1 :(得分:0)
RepeatLayout =“Flow”
在一个范围而不是一个表中呈现RadioButtonList。