Html 不同操作系统上的文本字段宽度问题
我用按钮Html 不同操作系统上的文本字段宽度问题,html,linux,css,twitter-bootstrap,Html,Linux,Css,Twitter Bootstrap,我用按钮width=“90%”编码了一个文本字段问题是它在Chrome for Windows中正确显示,但在Linux版本的Chrome中显示得更宽。在Linux版本中,文本字段的高度也缩短了一个像素 css代码: #search-fld { -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; -o-border-radius: 0; border-radius: 0; font-size:
width=“90%”编码了一个文本字段
问题是它在Chrome for Windows中正确显示,但在Linux版本的Chrome中显示得更宽。在Linux版本中,文本字段的高度也缩短了一个像素
css代码:
#search-fld {
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
font-size: 14px;
border-color: #D6D6D6;
width: 90%;//the width appear to be longer in the linux version
padding-left: 10px;
padding-right: 10px;
height: 24px;//the height appear to be less one pixel in the linux version
}
我正在使用引导
请告知
窗口:
Linux:只是旁注;你不需要把那些边界半径0设置为默认值否,因为正如我所说的,我使用的是引导,因此文本字段有一个半径,这与不同的字体无关?我不认为字体类型会导致这种情况