網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
????以下樣式代碼在less環(huán)境下生效,最終樣式如下。
????樣式代碼,
/*修改table 表體的背景顏色和文字顏色*/
/deep/ .el-table {
background-color: transparent;
th,
td {
background-color: transparent;
}
.el-table__expanded-cell {
background-color: transparent !important;
}
// 表頭背景色
th.el-table__cell {
background-color: rgb(25, 50, 70);
color: #fff;
}
tr > td {
background-color: rgb(25, 50, 70);
color: #fff;
}
// hover效果
tr:hover > td {
background-color: rgba(0, 0, 0, 0) !important;
}
tbody tr:hover > td {
background-color: #1356a1 !important;
// text-align: center;
}
// 滾動(dòng)條寬高
.el-table__body-wrapper::-webkit-scrollbar {
width: 5px;
height: 5px;
}
.el-table__body-wrapper::-webkit-scrollbar {
width: 5px;
/*滾動(dòng)條寬度*/
height: 10px;
/*滾動(dòng)條高度*/
}
/*定義滾動(dòng)條軌道 內(nèi)陰影+圓角*/
.el-table__body-wrapper::-webkit-scrollbar-track {
box-shadow: 0px 1px 3px #216fe6 inset;
/*滾動(dòng)條的背景區(qū)域的內(nèi)陰影*/
border-radius: 10px;
}
/*定義滑塊 內(nèi)陰影+圓角*/
.el-table__body-wrapper::-webkit-scrollbar-thumb {
box-shadow: 0px 1px 3px #216fe6 inset;
border-radius: 6px;
background-color: #216fe6;
}
}
原文鏈接:https://blog.csdn.net/weixin_43524214/article/details/125733507
相關(guān)推薦
- 2022-05-04 Python的五個(gè)標(biāo)準(zhǔn)數(shù)據(jù)類(lèi)型你認(rèn)識(shí)幾個(gè)_python
- 2022-01-19 webpack5 熱更新無(wú)響應(yīng)
- 2023-01-14 C++之eigen安裝與測(cè)試方式_C 語(yǔ)言
- 2022-06-25 Python多行輸入程序?qū)嵗a及擴(kuò)展_python
- 2022-04-09 C++實(shí)現(xiàn)加減乘除計(jì)算器_C 語(yǔ)言
- 2022-12-25 python字典中items()函數(shù)用法實(shí)例_python
- 2024-04-08 Stack.peek()與Stack.pop() 以及 poll與pop
- 2023-01-07 Python中層次聚類(lèi)的詳細(xì)講解_python
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過(guò)濾器
- Spring Security概述快速入門(mén)
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支