[英]Select html tag text cut in half
I been having this issue for a while.. 我有这个问题了一段时间。
The text of my is always cut in half when seen from smartphone or ubuntu browser(chromium,mozilla). 从智能手机或ubuntu浏览器(铬,mozilla)看时,我的文本总是被切成两半。
Nevertheless, when i see it on windows browsers(chrome,mozilla,explorer), looks perfectly normal. 不过,当我在Windows浏览器(chrome,mozilla,explorer)上看到它时,看起来非常正常。
Im using bootstrap 3.3.4 我正在使用引导程序3.3.4
Heres some code of the select 继承人的一些选择代码
<div class="col-lg-3" style="padding-right: 2px; padding-left: 0">
<select name="sistema0" id="sistema0" class="form-control" style="width: 100%; border-radius: 10px; margin-bottom: 3px; margin-top: 15px" >
<option>Elige un sistema de siembra</option>
<option value="triangulo">Triángulo</option>
<option value="surcos">Surcos</option>
<option value="cuadro">Cuadro</option>
<option value="barrera">Barrera</option>
</select>
</div>
.form-control {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}
.
。
As the above answer, line-height and padding might be a culprit, try to decrease your padding. 作为以上答案,行高和填充可能是罪魁祸首,请尝试减少填充。
.form-control {
...
padding: 0px 12px !important; /* until desired*/
...
}
then clear the cache. 然后清除缓存。 Also right clicking the element and click inspect element.
同样,右键单击元素,然后单击检查元素。 Then see check the css,
然后看检查css,
Somewhere in your CSS you are changing the line-height property on your page. 在CSS中的某个位置,您正在更改页面上的line-height属性。 Simply change the line-height on your select field and it should fix it.
只需在您选择的字段上更改行高,它就可以解决。
edit 编辑
.form-control {
...
line-height: 1 !important;
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.