久久久久久久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賬號..

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

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

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

                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.

                現(xiàn)在,我真的不明白為什么會發(fā)生這種情況.

                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模板網(wǎng)!

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

                相關文檔推薦

                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>
                          主站蜘蛛池模板: 国产xxx| 成年人免费在线观看 | 国产精品高潮呻吟av | 日日夜夜精品免费 | 日韩欧美在线免费观看 | 国产又粗又长又爽 | 一区二区免费在线观看 | 欧美一级免费看 | 婷婷在线播放 | 国产视频一二三 | 久久精品2| 日韩网站在线观看 | 精品毛片一区二区三区 | 成人小视频在线观看 | 婷婷av在线 | 欧美福利一区 | 国产做受入口竹菊 | 欧美一区二区三区不卡 | 成人黄色在线视频 | 婷婷在线视频 | 午夜视频在线 | 国产日韩在线视频 | 亚洲精品不卡 | 精品免费在线 | 黄色av大片 | 亚洲欧美一区二区三区四区 | 欧美色综合网 | 午夜激情网 | 欧美日韩中文字幕在线观看 | 一区二区三区四区视频在线观看 | 亚洲成人精品视频 | 三级av片 | 国产视频在线观看视频 | 国产又爽又黄免费视频 | 国产精品区二区三区日本 | 亚洲午夜18毛片在线看 | 在线免费看黄网站 | 在线观看黄色小说 | 中文字幕精品一区久久久久 | 一区二区自拍 | 亚洲国产免费 |