2011-01-08 83 views

回答

1
RadioButtonList rbl = new RadioButtonList(); 
rbl.RepeatDirection = RepeatDirection.Vertical; 
+0

var rbl = new RadioButtonList(){RepeatDirection = RepeatDirection.Vertical}; :) – 2011-01-08 05:26:54

0

您可以使用RadioButtonList Control并将RepeatDirection设置为Vertical。
如果这是不可能的,那么......

将它们添加到有序列表(OL元素)或无序列表(UL)。

0

可能的方式有两种:

  • 给一些CSS类,并在你的CSS给该类一些风格类似

    display:block;

  • 使用RadioButtonList控件作为容器的单选按钮。将“RepeatDirection”属性设置为“垂直”。