【问题标题】:Change position of inputs in a bootstrap modal在引导模式中更改输入的位置
【发布时间】:2017-09-01 22:18:23
【问题描述】:

我正在使用 squarespaceModal 来创建一个模态框,其中包含一个看起来像这样的表单:

我希望前两个输入(姓名和名字)在同一行。

这是实际的 CSS 代码:

   .center {
    margin-top:50px;   
}

.modal-header {
    padding-bottom: 5px;
}

.modal-footer {
        padding: 0;
    }

.modal-footer .btn-group button {
    height:40px;
    border-top-left-radius : 0;
    border-top-right-radius : 0;
    border: none;
    border-right: 1px solid #ddd;
}

.modal-footer .btn-group:last-child > button {
    border-right: 0;
}

目标是使向下滚动无效。

【问题讨论】:

标签: jquery css bootstrap-modal


【解决方案1】:
<style>
label, input {
  display: block; /*inputs are styled as block */
}
<style>

希望对你有帮助

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-13
    • 2020-01-01
    相关资源
    最近更新 更多