久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='5X1XD'><tr id='5X1XD'><dt id='5X1XD'><q id='5X1XD'><span id='5X1XD'><b id='5X1XD'><form id='5X1XD'><ins id='5X1XD'></ins><ul id='5X1XD'></ul><sub id='5X1XD'></sub></form><legend id='5X1XD'></legend><bdo id='5X1XD'><pre id='5X1XD'><center id='5X1XD'></center></pre></bdo></b><th id='5X1XD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5X1XD'><tfoot id='5X1XD'></tfoot><dl id='5X1XD'><fieldset id='5X1XD'></fieldset></dl></div>
      <bdo id='5X1XD'></bdo><ul id='5X1XD'></ul>
    1. <tfoot id='5X1XD'></tfoot>

      <small id='5X1XD'></small><noframes id='5X1XD'>

      <legend id='5X1XD'><style id='5X1XD'><dir id='5X1XD'><q id='5X1XD'></q></dir></style></legend>

      由于 MIME 類型而未加載樣式表

      Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)

      • <legend id='G8nwH'><style id='G8nwH'><dir id='G8nwH'><q id='G8nwH'></q></dir></style></legend>

            <tbody id='G8nwH'></tbody>

          <small id='G8nwH'></small><noframes id='G8nwH'>

            <tfoot id='G8nwH'></tfoot>
          1. <i id='G8nwH'><tr id='G8nwH'><dt id='G8nwH'><q id='G8nwH'><span id='G8nwH'><b id='G8nwH'><form id='G8nwH'><ins id='G8nwH'></ins><ul id='G8nwH'></ul><sub id='G8nwH'></sub></form><legend id='G8nwH'></legend><bdo id='G8nwH'><pre id='G8nwH'><center id='G8nwH'></center></pre></bdo></b><th id='G8nwH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='G8nwH'><tfoot id='G8nwH'></tfoot><dl id='G8nwH'><fieldset id='G8nwH'></fieldset></dl></div>
              <bdo id='G8nwH'></bdo><ul id='G8nwH'></ul>

              • 本文介紹了由于 MIME 類型而未加載樣式表的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在開發一個使用 gulp 進行編譯和瀏覽器同步的網站,以使瀏覽器與我的更改保持同步.

                I'm working on a website that uses gulp to compile and browser sync to keep the browser synchronised with my changes.

                gulp 任務可以正確編譯所有內容,但是在網站上,我看不到任何樣式,并且控制臺顯示此錯誤消息:

                The gulp task compiles everything properly, but on the website, I'm unable to see any style, and the console shows this error message:

                拒絕應用樣式來自'http://localhost:3000/assets/styles/custom-style.css' 因為它MIME 類型 ('text/html') 不是受支持的樣式表 MIME 類型,并且已啟用嚴格的 MIME 檢查.

                Refused to apply style from 'http://localhost:3000/assets/styles/custom-style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

                現在,我真的不明白為什么會發生這種情況.

                Now, I don't really understand why this happens.

                HTML 包含這樣的文件(我很確定這是正確的):

                The HTML includes the file like this (which I am pretty sure is correct):

                <link rel="stylesheet" type="text/css" href="assets/styles/custom-style.css"/>
                

                樣式表是 Bootstrap 和目前字體很棒的樣式(還沒有自定義).

                And the stylesheet is a merge between Bootstrap & font-awesome styles for now (nothing custom yet).

                路徑也是正確的,因為這是文件夾結構:

                The path is correct as well, as this is the folder structure:

                index.html
                assets
                |-styles
                  |-custom-style.css
                

                但我不斷收到錯誤消息.

                But I keep getting the error.

                可能是什么?這可能是 gulp/browsersync 的東西(可能是設置?)?

                What could it be? Is this something (maybe a setting?) for gulp/browsersync maybe?

                推薦答案

                我已將我的 href 更改為 src.所以從這里:

                I have changed my href to src. So from this:

                <link rel="stylesheet" href="dist/photoswipe.css">
                

                到這里:

                <link rel="stylesheet" src="dist/photoswipe.css">
                

                成功了.我不知道為什么,但它確實起到了作用.

                It worked. I don't know why, but it did the job.

                這篇關于由于 MIME 類型而未加載樣式表的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                CSS3 Transition ( Vendor Prefixes) crashes Safari immediately(CSS3 過渡(供應商前綴)立即使 Safari 崩潰)
                @font-face crashes IE8(@font-face 讓 IE8 崩潰)
                  <tbody id='q0ivC'></tbody>
                <i id='q0ivC'><tr id='q0ivC'><dt id='q0ivC'><q id='q0ivC'><span id='q0ivC'><b id='q0ivC'><form id='q0ivC'><ins id='q0ivC'></ins><ul id='q0ivC'></ul><sub id='q0ivC'></sub></form><legend id='q0ivC'></legend><bdo id='q0ivC'><pre id='q0ivC'><center id='q0ivC'></center></pre></bdo></b><th id='q0ivC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='q0ivC'><tfoot id='q0ivC'></tfoot><dl id='q0ivC'><fieldset id='q0ivC'></fieldset></dl></div>

                  <tfoot id='q0ivC'></tfoot>
                    • <bdo id='q0ivC'></bdo><ul id='q0ivC'></ul>

                      • <small id='q0ivC'></small><noframes id='q0ivC'>

                          <legend id='q0ivC'><style id='q0ivC'><dir id='q0ivC'><q id='q0ivC'></q></dir></style></legend>
                          主站蜘蛛池模板: 女人一区| 亚洲国产成人精品久久久国产成人一区 | 成人午夜精品一区二区三区 | 精品一区二区三区91 | 成人国产精品色哟哟 | 成年人免费看的视频 | 亚洲 成人 av| h视频在线观看免费 | 91在线网| 日韩午夜 | 久久久久国产精品一区 | 国产九一精品 | 日韩av福利在线观看 | 精品一区二区电影 | 久久机热 | 伊人国产精品 | 在线激情视频 | 一区二区三区精品视频 | 一区二区播放 | 亚洲精美视频 | 成人精品一区二区三区中文字幕 | 黄色一级大片在线免费看产 | 国产一区二区日韩 | 日日干夜夜干 | 美女黄网 | 亚洲国产中文字幕 | 亚洲天堂一区 | av播播| 九九热精品视频 | 欧美日韩亚洲在线 | 中文字幕亚洲精品 | 蜜桃日韩 | 91资源在线播放 | 韩日视频在线观看 | 91就要激情 | а天堂中文最新一区二区三区 | 一久久久| 天天操天天干天天透 | 色婷婷一区 | 一区二区在线 | 久久99国产精品久久99果冻传媒 |