如何设置单选按钮列表与后缀文本后的单选图标
How set radio button list with postfix the text after radio icon?
我使用asp.net单选按钮列表,它呈现以下html。但问题是如何渲染文本的单选按钮旁边的单选图标。目前,它是显示在底部的无线电图标。它正在呈现以下html。这两个单选按钮之间有大量的空间,即使没有在单选按钮之后渲染。
<td>
<table id="MainContent_rdlRunType" style="width:50%;">
<tbody>
<tr>
<td>
<input id="MainContent_rdlRunType_0" type="radio" name="ctl00$MainContent$rdlRunType" value="0" checked="checked">
<label for="MainContent_rdlRunType_0">True</label>
</td>
<td>
<input id="MainContent_rdlRunType_1" type="radio" name="ctl00$MainContent$rdlRunType" value="1">
<label for="MainContent_rdlRunType_1">False</label>
</td>
</tr>
</tbody>
</table>
</td>
我想渲染成
radio button True radio False.
有办法这样做吗?
这是因为您在表中使用了内联样式width: 50%
。你可以删除它:
<table id="MainContent_rdlRunType">
<tbody>
<tr>
<td>
<input id="MainContent_rdlRunType_0" type="radio" name="ctl00$MainContent$rdlRunType" value="0" checked="checked">
<label for="MainContent_rdlRunType_0">True</label>
</td>
<td>
<input id="MainContent_rdlRunType_1" type="radio" name="ctl00$MainContent$rdlRunType" value="1">
<label for="MainContent_rdlRunType_1">False</label>
</td>
</tr>
</tbody>
</table>
相关文章:
- 如何使用jquery在填充自动完成的值后使文本框只读
- 使用Clipboard.js复制span文本
- 使用JS如何动态更改显示的html文件中的文本背景颜色
- 用程序搜索JQuery数据表中的文本
- jQuery匹配JSON对象的部分文本
- onkeyup无法动态创建多个文本区域
- 如何在下面的ES6循环中获得前面的文本
- 将输入字段中的文本提交到我的数据库,同时将其添加到我的列表中
- 让文本输入幻灯片显示输入时的新文本输入?然后向后滑动
- 借助asp.net验证或java脚本对多个文本进行验证
- 无法在ajaxStart中更改跨度文本
- 高亮显示时编辑文本大小和颜色
- jquery中的文本框验证
- Javascript,有没有一种方法可以将数组写成没有逗号或空格的单个文本字符串
- Sails.js:同时发布文本输入和一个文件
- 当鼠标悬停在文本中的单词上时显示警报
- 删除标记字符串的前缀和后缀文本
- 如何设置单选按钮列表与后缀文本后的单选图标
- 在文本框中突出显示前缀/后缀的文本
- jqeasy字符计数显示在文本框(后缀)旁边