gpt4 book ai didi

css - 如何覆盖 Reboot.css 中的属性?

转载 作者:行者123 更新时间:2023-11-28 00:12:03 26 4
gpt4 key购买 nike

我试图覆盖 box-sizing: border-box; 属性,但它仍然保持不变。

我已经尝试使用内联 css,例如:box-sizing: initial !important;,但它没有用。

正如我在 inspect element 中看到的,源代码显示如下:

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

更新:

我已经包含了来自 cdn 的 Bootstrap 。

最佳答案

你可以使用

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

关于css - 如何覆盖 Reboot.css 中的属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55337178/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com