国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

怎么做局域網(wǎng)asp網(wǎng)站如何讓自己網(wǎng)站排名提高

怎么做局域網(wǎng)asp網(wǎng)站,如何讓自己網(wǎng)站排名提高,電商運(yùn)營培訓(xùn)大概多少學(xué)費(fèi),建設(shè)集團(tuán)公司網(wǎng)站背景 項(xiàng)目里多個(gè)Tab標(biāo)簽都需要設(shè)置同樣的背景顏色#F1F5FF,在集成tailwindcss之前就是重復(fù)該樣式,如下圖: .body {background-color: #f1f5ff; }集成tailwindcss時(shí),我們希望在class中直接設(shè)置該背景色,但是默認(rèn)的tai…

背景

項(xiàng)目里多個(gè)Tab標(biāo)簽都需要設(shè)置同樣的背景顏色#F1F5FF,在集成tailwindcss之前就是重復(fù)該樣式,如下圖:
在這里插入圖片描述

.body {background-color: #f1f5ff;
}

集成tailwindcss時(shí),我們希望在class中直接設(shè)置該背景色,但是默認(rèn)的tailwindcss的背景色色板里不包含該顏色,我們想到要定義一個(gè)顏色變量保存,再引用該顏色

Tailwindcss 定制

自定義調(diào)色板

默認(rèn)情況下,Tailwind 將整個(gè)默認(rèn)調(diào)色板用作背景顏色。

您可以通過編輯文件中的變量來自定義調(diào)色板,或者使用Tailwind 配置部分僅自定義背景顏色。theme.colors tailwind.config.js theme.backgroundColor

當(dāng)您確實(shí)需要自定義調(diào)色板時(shí),您可以在文件部分colors中的鍵下配置顏色:theme tailwind.config.js

// tailwind.config.js
module.exports = {theme: {colors: {// Configure your color palette here}}
}

在構(gòu)建自定義調(diào)色板時(shí),有兩種方式,第一,您可以從我們廣泛的調(diào)色板中選擇您的顏色。第二。您也可以通過直接添加特定的顏色值來配置您自己的自定義顏色。

1. 使用Tailwind 配置部分僅自定義背景顏色

如果您沒有為項(xiàng)目考慮一套完全自定義的顏色,您可以通過導(dǎo)入'tailwindcss/colors'配置文件并選擇您喜歡的顏色來從我們的完整調(diào)色板中挑選您的顏色。

// tailwind.config.js
const colors = require('tailwindcss/colors')module.exports = {theme: {colors: {transparent: 'transparent',current: 'currentColor',black: colors.black,white: colors.white,gray: colors.trueGray,indigo: colors.indigo,red: colors.rose,yellow: colors.amber,}}
}

請參考 完整的調(diào)色板參考

2. 自定義調(diào)色板

您可以通過從頭開始添加自己的顏色值來構(gòu)建完全自定義的調(diào)色板:

// tailwind.config.js
module.exports = {theme: {colors: {transparent: 'transparent',current: 'currentColor',blue: {light: '#85d7ff',DEFAULT: '#1fb6ff',dark: '#009eeb',},pink: {light: '#ff7ce5',DEFAULT: '#ff49db',dark: '#ff16d1',},gray: {darkest: '#1f2d3d',dark: '#3c4858',DEFAULT: '#c0ccda',light: '#e0e6ed',lightest: '#f9fafc',}}}
}

默認(rèn)情況下,這些顏色會(huì)被所有顏色驅(qū)動(dòng)的實(shí)用程序自動(dòng)共享,例如、、textColor等等。backgroundColorborderColor

擴(kuò)展默認(rèn)設(shè)置

如主題文檔中所述,如果您想要擴(kuò)展默認(rèn)調(diào)色板而不是覆蓋它,則可以使用文件theme.extend.colors 的部分來實(shí)現(xiàn)tailwind.config.js

// tailwind.config.js
module.exports = {theme: {extend: {colors: {'regal-blue': '#243c5a',}}}
}

bg-regal-blue除 Tailwind 的所有默認(rèn)顏色外,這還將生成類似的類別。

這些擴(kuò)展已深度合并,因此如果您想在 Tailwind 的默認(rèn)顏色之一中添加其他色調(diào),可以這樣做:

// tailwind.config.js
module.exports = {theme: {extend: {colors: {blue: {450: '#5F99F7'},}}}
}

這將添加類似的類 bg-blue-450,而不會(huì)丟失現(xiàn)有的類,如 bg-blue-400bg-blue-500

解決

在項(xiàng)目中,我們只需新增一個(gè)自定義的背景色,所以最有效的辦法是擴(kuò)展默認(rèn)配置,因此我們在tailwind.config.js加入如下配置:

// tailwind.config.js
module.exports = {theme: {extend: {colors: {tab_background: '#F1F5FF',}}}
}

再在組件中用class name申明背景色樣式:

<div class="bg-tab_background"></div>
http://m.aloenet.com.cn/news/41428.html

相關(guān)文章:

  • 專業(yè)網(wǎng)站制作的公司網(wǎng)絡(luò)賺錢推廣
  • 佛山企業(yè)做網(wǎng)站拉新充場app推廣平臺(tái)
  • 做曖曖視頻網(wǎng)站安全嗎it培訓(xùn)機(jī)構(gòu)哪個(gè)好一點(diǎn)
  • 做網(wǎng)站的服務(wù)器怎么選網(wǎng)店代運(yùn)營十大排名
  • 網(wǎng)站開發(fā)的關(guān)鍵計(jì)算機(jī)資源計(jì)劃寧德市疫情
  • b s模式的網(wǎng)站開發(fā)用網(wǎng)站模板建站
  • 百度個(gè)人網(wǎng)站申請seo廣告投放是什么意思
  • 佛山做網(wǎng)站3000自己網(wǎng)站怎么推廣
  • wordpress添加郵件輸入列表廈門網(wǎng)站優(yōu)化公司
  • dede網(wǎng)站qq類源碼百度快照下載
  • 即時(shí)通訊網(wǎng)站開發(fā)源碼手機(jī)百度瀏覽器
  • 怎么做網(wǎng)絡(luò)銷售的網(wǎng)站國內(nèi)新聞
  • 靜態(tài)企業(yè)網(wǎng)站模板目前最靠譜的推廣平臺(tái)
  • 西安最好的網(wǎng)站建設(shè)公司品牌推廣思路
  • 做簡圖的網(wǎng)站網(wǎng)絡(luò)營銷專業(yè)代碼
  • 一個(gè)公司設(shè)計(jì)網(wǎng)站怎么做近三天發(fā)生的大事
  • 網(wǎng)站建設(shè)最新教程網(wǎng)絡(luò)營銷外包收費(fèi)
  • 網(wǎng)站優(yōu)化三要素視頻推廣平臺(tái)
  • 小程序 網(wǎng)站 開發(fā)廈門百度推廣開戶
  • 深圳建站推廣公司b站視頻推廣網(wǎng)站
  • 河南省建設(shè)監(jiān)理協(xié)會(huì)網(wǎng)站網(wǎng)站推廣的途徑和方法
  • 著名的國外設(shè)計(jì)網(wǎng)站廣州優(yōu)化防控措施
  • 網(wǎng)站開發(fā)如何讓圖片加載的更快第一推廣網(wǎng)
  • 做網(wǎng)站對客戶有什么幫助外包網(wǎng)絡(luò)推廣公司
  • wap網(wǎng)站適配競價(jià)托管外包
  • 微信小程序是免費(fèi)的嗎seo工程師是什么職業(yè)
  • 怎么用網(wǎng)站后臺(tái)做輪播圖打開百度網(wǎng)站
  • 廣州哪家做網(wǎng)站價(jià)格好百度熱搜榜排名
  • 六安網(wǎng)站推廣獲客app第一接單網(wǎng)app地推和拉新
  • wex5 wordpressseo整站優(yōu)化公司持續(xù)監(jiān)控