简体   繁体   English

HTML / CSS避免在新行上开始文本字段

[英]HTML/CSS Avoid starting textfield on a new line

I'm using the bootstrap framework and i am trying to make it fluid, so it views "perfect" on every device. 我正在使用引导框架,并且正在尝试使其流畅,因此它在每个设备上均显示“完美”。 However i am currently experiencing a problem which i can't solve. 但是我目前遇到一个我无法解决的问题。 The textfield starts on a new line at some point when you resize it. 调整其大小时,文本字段有时会在新行上开始。 (Live Demo: http://veiling.jamieknoef.nl , the login textfields) It should stay in line. (实时演示: http : //veiling.jamieknoef.nl ,登录文本字段)它应该保持一致。

Any suggestions? 有什么建议么?

Try: 尝试:

.login { min-width: 140px; }

That being said. 话虽如此。 Once the screen starts to get that narrow you need to look at possiby rearranging your layout as its going to have all sorts of problems on smaller devices - which is where media queries come in. 一旦屏幕开始变窄,您需要查看possiby,重新排列布局,因为在较小的设备上会出现各种各样的问题-这是媒体查询的来源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM