我对 ASP 很陌生,并且有以下代码:
<tr>
<td style="padding-bottom:5px;">Would you return to this practice again? <asp:RequiredFieldValidator SetFocusOnError="true" ID="rfvReturn" runat="server" ControlToValidate="rblReturn" ErrorMessage="*" ForeColor="Red" Font-Bold="true" Display="Dynamic" /></td>
<td style="padding-bottom:5px;">
<asp:RadioButtonList runat="server" ID="rblReturn" RepeatDirection="Horizontal">
<asp:ListItem Value="true" Text="Yes" />
<asp:ListItem Value="false" Text="No" />
</asp:RadioButtonList>
</td>
</tr>
<tr class="spaceUnder">
<td style="padding-bottom:5px;">Would you refer a friend to this practice? <asp:RequiredFieldValidator SetFocusOnError="true" ID="rfvRefer" runat="server" ControlToValidate="rblRefer" ErrorMessage="*" ForeColor="Red" Font-Bold="true" Display="Dynamic" /></td>
<td style="padding-bottom:5px;">
<asp:RadioButtonList runat="server" ID="rblRefer" RepeatDirection="Horizontal">
<asp:ListItem Value="true" Text="Yes" />
<asp:ListItem Value="false" Text="No" />
</asp:RadioButtonList>
</td>
</tr>
此代码创建以下内容:
我想做的是用可以切换的图像替换单选按钮,看起来像这样:
我到处搜索,但似乎找不到办法。