twitter-bootstrap Twitter Bootstrap 中的复选框列表

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19356928/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 18:50:55  来源:igfitidea点击:

CheckBox List in Twitter Bootstrap

twitter-bootstrapcheckboxlist

提问by Tulips

I have a list of check boxes to display and I am using Twitter Bootstrap. My problem is that when I go to mobile site the text for the label covers the checkbox itself. Now, I have the following code and text is overlapping the checkbox. What can be wrong?

我有一个要显示的复选框列表,我正在使用 Twitter Bootstrap。我的问题是,当我访问移动站点时,标签的文本会覆盖复选框本身。现在,我有以下代码和文本与复选框重叠。有什么问题?

<ul class="nav nav-list"> <li><label class="checkbox"><input type="checkbox" value="89" name="[14].Answer.SelectedAnswers">Biologie</label></li>

So, ex Biologie starts from the top of the checkbox and doesn't leave a space in between the box and start of the text.

因此,ex Biologie 从复选框的顶部开始,并且不会在框和文本开头之间留下空格。

回答by sush

it seems you have not closed the ul tag. coz i don't see it in your question. Or if you have try to put the entire link in a div with span3.

看来您还没有关闭 ul 标签。因为我在你的问题中没有看到。或者,如果您尝试将整个链接放在带有 span3 的 div 中。