<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 沒有用使用vue-cli3腳手架rem的配置 ## rem?配置 index.html??文件修改???? ``` <meta name="viewport" content="width=device-width,initial-scale=1.0,maxium-sclale=1,user-scalable=0"> ``` ## rem.js 代碼 ``` (function () { function a() { var b = document.documentElement.clientWidth; b = b > 750 ? 750 : b; var c = b / 750 * 100; document.getElementsByTagName("html")[0].style.fontSize = c + "px" } a(); window.onresize = a })(); ``` ## px-轉化成 -rem * [ ] 安裝 npm install px2rem-loader * [ ] 配置 bulid/utils.js 下找到 generateLoaders * [ ] 修改這行代碼 ``` const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader,px2remLoader] ``` * [ ] 在該函數外部 定義一個值 px2remLoader ``` var px2remLoader = { loader: 'px2rem-loader', options: { remUnit: 50 } } ``` * 注意事項 : 插件默認轉為rem * 若不想轉為rem 在樣式后面加 /*no*/ 如:height:40px ;/*no*/ # 升級 使用vue-cli3腳手架時rem的配置 [參考鏈接]([https://www.jianshu.com/p/94902796f2ad](https://www.jianshu.com/p/94902796f2ad)) * [ ] 1.安裝插件 `npm i amfe-flexible` =>> 在mian.js中引入`import 'amfe-flexible'` * [ ] 2.或者 使用 `rem.js 代碼` =>> 在mian.js中引入 `import './config/rem'` * [ ] 3.安裝插件 `npm i postcss-px2rem` 代替 `px2rem-loader` * [ ] 4.postcss.config.js中修改配置 ``` "postcss": { "plugins": { "autoprefixer": {}, "postcss-px2rem": { "remUnit": 37.5 } } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看