首页 新闻 会员 周边

updatepanel中的GridView中的radiobuttonList怎么设置样式

0
悬赏园豆:5 [已关闭问题] 关闭于 2011-09-27 11:45

鹏雕的主页 鹏雕 | 菜鸟二级 | 园豆:205
提问于:2011-09-27 11:31
< >
分享
所有回答(1)
0

步骤:

1:在单选按钮组控件中 添加属性 RepeatLayout ,其值选“flow”<asp:RadioButtonList runat="server" Width="240px" RepeatDirection="Horizontal" RepeatLayout="flow">

(说明:选“flow”,RadioButtonList控件在网页中显示为<span></span>形式,若选“table”,在网页中显示<table><tr><td></td></tr></table>形式的html代码)

2:在css文件中写样式

span.includerbl input{text-align:center;border: 0px 0px 0px 0px} /* by  djh */

3:引用样式文件<link href="http://www.cnblogs.com/include/main05.css" type="text/css" rel="stylesheet" />

*/

鹏雕 | 园豆:205 (菜鸟二级) | 2011-09-27 11:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册