这应该很容易。你如何使单选按钮列表居中?过去并不难。 下面的 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>
最佳答案
RepeatLayout="流"
在跨度而不是表格中呈现 RadioButtonList。
关于html - 如何使 RadioButtonList 在表格单元格中居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12320117/