您的位置首页生活百科

如何设置RadioButtonList控件的样式

如何设置RadioButtonList控件的样式

的有关信息介绍如下:

如何设置RadioButtonList控件的样式

如何设置RadioButtonList控件的样式

1、打开visual studio,并创建web窗体应用软件新项目

2、添加一个新的web窗体

3、加入RadioButtonList控件,并点击编辑项

4、输入数据项

5、确定数据项后,点击RadioButtonList控件,进入属性面板,设置BackColor和ForeColor,完成最简单的样式设置

用css+javascript设置样式

RadioButtonList控件的ID设置为RadioButtonList1,在aspx文件的标签之间,插入以下代码:

在aspx文件同文件夹下,添加radiobutton点击效果图片文件。

运行可见效果