- 這種寫(xiě)法在內(nèi)網(wǎng)環(huán)境下無(wú)法使用怀骤。相當(dāng)于在內(nèi)網(wǎng)請(qǐng)求外網(wǎng)數(shù)據(jù)。
<style lang="scss" scoped>
@import url("http://unpkg.com/element-ui@2.4.11/lib/theme-chalk/index.css");
.scroll{
margin-top: 10px;
}
</style>
2.el-menu中background-color只能使用十六進(jìn)制(hex),black和rgb出現(xiàn)bug捌议,鼠標(biāo)懸浮出現(xiàn)白色背景孽锥;
3.sass 在vue-cli3中定義全局變量
vue.config.js
// css相關(guān)選項(xiàng)
css: {
/*為預(yù)處理器 loader 傳遞自定義選項(xiàng)*/
loaderOptions: {
sass: {
prependData: `@import "@/assets/base/style/color.scss";`
}
}
}
注意:老版使用data嚼黔,新版使用prependData细层,否則會(huì)報(bào)錯(cuò);
// "sass-loader"版本: "^8.0.0",
@import "@/assets/base/style/color.scss";
中' ; '放在"..."外面唬涧,放在里面會(huì)報(bào)錯(cuò)疫赎。
4.谷歌瀏覽器記住密碼后input顏色改變問(wèn)題
input:-webkit-autofill {
/* input 背景色 #0C2034根據(jù)自己需要替換 /
-webkit-box-shadow : 0 0 0px 1000px #102d53 inset !important;
/ input字體顏色 顏色根據(jù)自己要求替換 */
-webkit-text-fill-color: #0573c3 !important;
}