gpt4 book ai didi

css - bootstrap scaffolding.less 正在更改默认 style.css

转载 作者:太空宇宙 更新时间:2023-11-03 22:45:29 25 4
gpt4 key购买 nike

enter image description here

我在网站上添加了一个名为 stretchy-navigation导航栏。它有很多 css 和更少的文件。它向 body 引入矿工变化。删除 header 可以解决问题,但我需要 header 。顺便说一下,我用带有“加载”功能的 jQuery 添加页眉和页脚。

enter image description here

这是 flex 导航文件结构。

最佳答案

在不看代码的情况下,您可以尝试一些事情。

  1. 用 !important 强制你的 body css 而不是 bootstraps

    font-size:1.6rem !important;

  2. 将类(class)添加到您的 <body>标签如 <body class='mybody'>然后让你的 css 选择器目标 body.mybody{font-size:1.6rem;}通过使您的 css 规则更具体,它可能会优先。

  3. 链接 CSS 文件的顺序可能很重要。尝试先放置 Bootstrap ,然后再放置您的自定义 css 代码。

关于css - bootstrap scaffolding.less 正在更改默认 style.css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42143908/

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