Bootstrap horizontal form “control-label” not using responsive styling

你。 提交于 2019-12-03 16:29:11
jevanler

bootstrap.css must be loaded before the bootstrap-responsive.css file.

.control-label is only specified in responsive.css for (max-width: 480px). Have you tried shrinking the width way down? When I use the forms, they look like your example until 480px, at which point the labels move above the input fields.

If you want to change as you add the class

<input type="text" name="title" id="title" class="span3" />

Another solution is to directly specify a style ID width: auto

#title {
    width_auto;
}

Remember that your new style should be after the bootstrap css

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!