内联样式不适用于 asp:checkbox,而是应用于 span?
<td style="width: 100px; height: 25px">
<asp:CheckBox ID="Test" Text="Testing" style="margin-bottom: 2px;"></asp:CheckBox>
</td>
css 适用于 span 而不是具体适用于该复选框。如果我调试浏览器并在那里应用它,它就会生效。
最佳答案
如果你真的想在标记中使用代码,你可以使用 html 输入:
<input type="checkbox" id="Test1" runat="server" style="margin-bottom: 15px;" />
关于css - 内联样式不适用于 asp :checkbox?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49858643/