html - 如何使 RadioButtonList 在表格单元格中居中

标签 html css radiobuttonlist

这应该很容易。你如何使单选按钮列表居中?过去并不难。 下面的 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/

相关文章:

php - 具有多个句柄的 Jquery UI slider

javascript - jQuery .load(function) 和 .addClass 以删除预加载器不起作用

javascript - 如何使用 jquery/javascript 在 asp.net c# 中禁用单选按钮单击上的链接按钮

jquery - 如何循环浏览单选按钮列表

javascript - 如何使用 Javascript 枚举蛇梯棋盘?

html - 最佳基础html嵌套实践

javascript - jQuery mobile - 关闭历史记录面板

html - 使垂直菜单高度适合 100%

css - 输入,不同长度/宽度的文本字段?

c# - 从 html 单选按钮获取值 - 在 aspx-c#