【问题标题】:height issue in bootstrap switch引导开关中的高度问题
【发布时间】:2017-06-30 14:26:45
【问题描述】:

Bootstrap switch with on text 'Yes'

我在 Bootstrap 开关中遇到高度问题。我无法更改开关的高度。如何更改开关的高度。

【问题讨论】:

    标签: bootstrap-switch


    【解决方案1】:

    只需将以下 css 添加到您的页面并根据您的设计调整高度、填充和边距。

    div.bootstrap-switch-container {
        height: 25px;
    }
    .bootstrap-switch .bootstrap-switch-handle-on, .bootstrap-switch .bootstrap-switch-handle-off, .bootstrap-switch .bootstrap-switch-label  {
        padding: 3px 12px;
    }
    div.bootstrap-switch {
        margin-top: -4px;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-07
      • 1970-01-01
      • 2020-08-15
      • 1970-01-01
      相关资源
      最近更新 更多