2011-01-08 40 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」屬性設置爲「垂直」。