动态单选按钮有问题 [英] Problem with dynamic radio button
问题描述
您好朋友,
我在运行时创建单选按钮,在Internet Explorer中运行正常,但是使用firefox很难选择单选按钮.
我正在使用ASP.NET c#,版本2.0
这是iam使用的代码,
RadioButton rd = new RadioButton();
rd.ID ="id" + i.ToString();
rd.Text = ans [ i];
rd.GroupName ="dynrd";
将所需的RB这样绑定到Panel,
Panel1.Controls.Add(rd);
如何解决....我可以选择单选按钮,但是很难选择.
Hi freinds,
Iam creating radio buttons at runtime it is working fine in internet explorer but with firefox it is very difficult to select radio button.
I am using ASP.NET c#,version 2.0
this is the code iam using,
RadioButton rd = new RadioButton();
rd.ID = "id" + i.ToString();
rd.Text = ans[i];
rd.GroupName = "dynrd";
And binding needed RB to Panel like this,
Panel1.Controls.Add(rd);
How to solve it....I can select radio button but it is very difficult to select.
推荐答案
做什么? 难以选择"是什么意思?听起来您的Firefox绘制的单选按钮不好.您必须更好地解释自己.如果按钮太小,请尝试使用CSS使其变大?
what does ''difficult to select'' mean ? It sounds like your firefox is not drawing the radio buttons well. You have to explain yourself better. If the buttons are too small, try using CSS to make them bigger perhaps ?
这篇关于动态单选按钮有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!