twitter-bootstrap - IE 11 中的 css 表格单元格不必要的填充

标签 twitter-bootstrap css internet-explorer

我有一张小 table ,Internet Explorer 11 为单元格添加了填充,因此孔表比 chrome 或 firefox 中的要大。

有人知道为什么会这样吗?我正在使用 bootstrap 3。

举个例子: https://plnkr.co/edit/cX8N9eLjVTR93nYyaLTN?p=preview

<div class="container">
  <table class="table">
    <tr>
        <td width="25px">
            <button class="btn btn-sm btn-default">+</button>
        </td>
        <td>
            <input style="width: 100%" type="range" >
        </td>
        <td width="25px">
           <button class="btn btn-sm btn-default">-</button>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <small class="pull-left">24,0 °C</small>
            <small class="pull-right">31,1 °C</small>
        </td>
    </tr>
</table>

IE 11:

enter image description here

和 Chrome :

enter image description here

最佳答案

IE 在 <input> 上增加了填充比 Chrome 是什么。 Chrome 在顶部和底部都放置了 8px 的填充,IE 在顶部放置了 17px,在底部放置了 32px。设置输入的填充,使其在浏览器中保持一致,您应该已经准备就绪。

关于twitter-bootstrap - IE 11 中的 css 表格单元格不必要的填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43607096/

相关文章:

css - 十六进制颜色计算器 : change color for twitter bootstrap buttons

CSS水平下拉菜单定位

javascript - <object> 中的 SVG 未显示在 IE 中的 Angular 2 组件中

css - IE 兼容模式下的 Kendo UI - 滚动面板栏

security - Internet Explorer 跨域 iframe 登录

javascript - 包含 iframe 的页面上的 Bootstrap 3 导航栏

angular - 如何在 Angular 11 组件 TS 中使用 Bootstrap 5 JS

javascript - 创建单击时在 Twitter Bootstrap 按钮组中处于事件状态的复选框按钮的哈希值

javascript - 如何修复站点地图按钮的 html 内联编码

html - 带有可扩展列表和带有描述的图标的温泉 UI