VB/ASP.NET中的复选框列表出现问题 [英] Problem with checkboxlist in VB/ASP.NET
本文介绍了VB/ASP.NET中的复选框列表出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我正在尝试在以下VB控件中设置复选框样式:
Hello,
I am trying to style a checkboxlist in VB control below:
Dim MultipleSelect As New CheckBoxList
MultipleSelect.RepeatColumns = 1
MultipleSelect.ID = "checkboxlist_" & IssueScoreControl.IssueScoreControl_PK
MultipleSelect.CssClass = "chkListStyle"
bla bla
样式类"chkListStyle"如下:
and the style class "chkListStyle" is as follows:
<style>
.chkListStyle input { float:left; }
.chkListStyle label { float:left; width:80%; padding-left:3px; }
</style>
我想要复选框旁边的文本.如果字数超过1个,则表示一切正常.
但是由于某种原因,当添加到复选框列表中的项的文本是单个单词时,该单词会出现在下一行(复选框下方).我该如何解决?如果有人知道,请告诉我.
提前谢谢.
问候
I want the text next to the check box. If there are more than 1 words, it worls all fine.
But For some reason, when the text of an item added to the checkboxlist is a single word, the word appears in the next line (below the check box). How do I solve this? Please let me know if anyone is aware.
Thanks in advance.
Regards
推荐答案
如果有帮助,请尝试此操作.
Hi,
Try this if oculd help.
<style>
.chkListStyle input
{
float: left;
}
.chkListStyle label
{
float: left;
width: 80%;
padding-left: 3px;
vertical-align:top;
}
</style>
问候
Regards,
这篇关于VB/ASP.NET中的复选框列表出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文