custom.css会延迟加载,而引导样式会先显示几秒钟,

时间:2019-03-06 02:47:07

标签: css bootstrap-4 customization

我创建了custom.css来覆盖我的引导程序。它可以工作,但是会先显示默认的引导程序样式几秒钟,然后再加载自定义样式。有任何想法吗?谢谢!

自定义css在引导程序btw之后执行:

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js'></script>
           <link rel="stylesheet" href="https://toert.github.io/Isolated-Bootstrap/versions/4.0.0-beta/iso_bootstrap4.0.0min.css">
          <link rel="stylesheet" type="text/css" href="css/custom.css">

1 个答案:

答案 0 :(得分:0)

<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js'></script> <link rel="stylesheet" type="text/css" href="css/custom.css"> <link rel="stylesheet" href="https://toert.github.io/Isolated-Bootstrap/versions/4.0.0-beta/iso_bootstrap4.0.0min.css">

尝试切换位置,以便custom.css首先加载^^