【问题标题】:Why are the twitter-bootstrap styles for button set to overflow:visible?为什么按钮的 twitter-bootstrap 样式设置为溢出:可见?
【发布时间】:2015-04-19 10:45:17
【问题描述】:

为什么按钮的 twitter-bootstrap 样式设置为溢出:可见?

像这样:

button{
  overflow:visible;
}

【问题讨论】:

    标签: css twitter-bootstrap frontend css-frameworks


    【解决方案1】:

    它属于Normalize.css而不是twitter bootstrap。用于将overflow的值重置为visible,因为在IE 8/9/10/11中默认设置为hidden

    //
    // Address `overflow` set to `hidden` in IE 8/9/10/11.
    //
    
    button {
      overflow: visible;
    }
    

    【讨论】:

    【解决方案2】:

    查看reference

    可见

    可见 默认值。内容没有被剪辑,它可能会被渲染 在内容框之外。

    如果溢出是autoscroll,它将为按钮添加滚动条。 这就是 Twitter 引导程序使用 overflow:visible; 的原因,因此该按钮将呈现在 content box 之外。

    【讨论】:

      猜你喜欢
      • 2013-06-12
      • 2017-02-25
      • 2023-04-01
      • 2014-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-27
      • 2019-01-13
      相关资源
      最近更新 更多