带有'x'的html复选框,而不是传统的tick

时间:2021-10-03 09:51:18

is it possible display a 'x' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a 'tick' mark. Can we change this? Or else what is the alternative to this in asp.net

当我们点击它时,是否可能为html复选框显示'x'。传统上,即(在winxp和更高版本上)它显示为“刻度”标记。我们可以改变这个吗?或者在asp.net中有什么替代方案

4 个解决方案

#1


3  

I guess you can hack something using images instead of a real checkbox, using javascript to change the image selection

我想你可以使用图像而不是真正的复选框来破解某些东西,使用javascript来改变图像选择

#2


0  

I'm not sure if you are talking to Web Application or Windows application. Let's assume that you meant Web application. You can't change normal input, it's something in system settings.

我不确定您是否正在与Web应用程序或Windows应用程序进行通信。我们假设您的意思是Web应用程序。您无法更改正常输入,这是系统设置中的内容。

However, you can put Javascript that will put CSS images instead. Example: http://www.whitespace-creative.com/jquery/jNice/ or http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery

但是,您可以放置​​将放置CSS图像的Javascript。示例:http://www.whitespace-creative.com/jquery/jNice/或http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery

#3


0  

Check out the Ajax Control Toolkit's ToggleButton Control: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx

查看Ajax Control Toolkit的ToggleButton控件:http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx

I think it might be what you're looking for.

我想这可能就是你要找的东西。

#4


0  

there's fancy-forms to accomplish exactly this

有奇特的形式可以完成这个

#1


3  

I guess you can hack something using images instead of a real checkbox, using javascript to change the image selection

我想你可以使用图像而不是真正的复选框来破解某些东西,使用javascript来改变图像选择

#2


0  

I'm not sure if you are talking to Web Application or Windows application. Let's assume that you meant Web application. You can't change normal input, it's something in system settings.

我不确定您是否正在与Web应用程序或Windows应用程序进行通信。我们假设您的意思是Web应用程序。您无法更改正常输入,这是系统设置中的内容。

However, you can put Javascript that will put CSS images instead. Example: http://www.whitespace-creative.com/jquery/jNice/ or http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery

但是,您可以放置​​将放置CSS图像的Javascript。示例:http://www.whitespace-creative.com/jquery/jNice/或http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery

#3


0  

Check out the Ajax Control Toolkit's ToggleButton Control: http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx

查看Ajax Control Toolkit的ToggleButton控件:http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx

I think it might be what you're looking for.

我想这可能就是你要找的东西。

#4


0  

there's fancy-forms to accomplish exactly this

有奇特的形式可以完成这个