Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含文本和电子邮件字段的表单。Bootstrap 始终以小于文本或密码字段的高度呈现电子邮件字段。知道如何解决这个问题吗?我正在使用 rails 标签“text_field”和“email_field”来生成表单。
font-size尝试使用 css属性显式设置每个字段的 div 的字体大小。
font-size
示例(在您的 css 文件中):
div.email_field { font-size: 16px; } div.text_field { font-size: 12px; }