请看下图,aspx代码在图片下方
<div>
<asp:RadioButton runat="server" ID="radiobtn"
Text="Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. It has survived
not only five centuries," />
<br />
<asp:RadioButton runat="server" ID="RadioButton1"
Text="Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. It has survived
not only five centuries, " />
<br />
<asp:RadioButton runat="server" ID="RadioButton2"
Text=" Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry's standard
dummy text ever since the 1500s, when an unknown printer took a galley
of type and scrambled it to make a type specimen book. It has survived
not only five centuries," />
</div>
最佳答案
您可以给 div padding-left,然后负边距单选按钮。您还需要将其向左浮动以使其正确对齐:
div {
padding-left: 20px;
}
input {
margin: 3px 0 0 -20px;
float: left;
}
关于asp.net - RadioButton 控件控件下的文字换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21542374/