html - Bootstrap CSS 省略样式

标签 html css twitter-bootstrap

我正在尝试使用我发现的一个小片段在我的页面上创建一个滑出选项卡。一切似乎都在功能上明智地工作,但是有一种从 Bootstrap 应用的样式打破了它的外观。

这是关闭以下 CSS 时的样子:

*, *:before, *:after {
box-sizing: border-box;
}

enter image description here

但是,当它被应用时它会破坏它:

enter image description here

有什么方法可以防止在那个 DIV 上使用那个 css 吗?

最佳答案

尝试给具有灰色背景的元素一个 .clearfix 类。

关于html - Bootstrap CSS 省略样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25627088/

相关文章:

html - 如何根据内容 ID 对齐边栏元素

html - 将提交按钮显示为图像

javascript - 使用 VBA 遍历 DIV 元素

ios - 在 iphone 浏览器上嵌入 Youtube 时应用 css

html - 在 Qualtrics 中添加字体

JavaScript单选按钮检查相关问题

css - Bootstrap 列系统,使用 col-md-4 换行

javascript - D3 js图中相同颜色的箭头和链接

css - Stripe 元素和 Bootstrap 4.1 css 冲突

jquery - 在 Knockout 数据绑定(bind)文本中包含 span 元素