html - div 宽度被忽略

标签 html css

我正在尝试以编程方式在某些 div 中添加一系列按钮。

这是 code :

为什么 width: 110px 被忽略了?

最佳答案

按钮的宽度为 110px,但放置在宽度仅为 8.3333% 的 div 中。这来自 .s1 类。删除类会根据需要显示宽度为 110 像素的每个按钮。

.row .col.s1 {
    /* width: 8.3333333333%; */
    margin-left: auto;
    left: auto;
    right: auto;
}

关于html - div 宽度被忽略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39261126/

相关文章:

javascript - 需要为 c3 子图表设置背景颜色或使其不如主图表透明

javascript - 如何有条件地向元素动态添加 AngularJS 指令?

html - CSS 列规则样式?

jquery - 居中 div - Bootstrap

javascript - 向下滚动转换和 Logo 移动

javascript - JS : Specifying current element in the menu

javascript - 在 JavaScript 中逐行读取 HTML <p> 标记内的文本

javascript - 滑动垂直菜单 : prevent the title from moving left on hover

html - CSS Angular block

css - 复杂的双文本下划线