当前位置: 首页 > news >正文

element-ui 的el-calendar日历组件样式修改

 <div style="width:100%;height:calc(100% - 35px);margin-top: 5px;"><el-calendar v-model="calendar" style="height: 100%;"></el-calendar></div>

css部分

<style>/* 去除底色 */
/deep/ .el-calendar {background: none !important;
}/deep/ .el-calendar-table thead th {color: #68a8d0 !important;text-align: center;
}
/* 高度调整为了让内部自适应 */
/deep/ .el-calendar__body {height: 90% !important;
}/deep/ .el-calendar__body table thead th {color: #68a8d0;
}/deep/ .el-calendar-table {height: 100% !important;
}
/* 内部小方格,可直接控制显示 */
/deep/ .el-calendar-table .el-calendar-day {height: 100% !important;color: #FFF;text-align: center;font-weight: 600;
}
/* 非本月部分的文字灰色 */
/deep/ .el-calendar-table .next .el-calendar-day {color: #7d7979 !important;
}/deep/ .el-calendar-table .prev .el-calendar-day {color: #7d7979 !important;
}/deep/ .el-calendar-table td.is-selected .el-calendar-day {color: #fff !important;/* background: none !important; */
}
/* 选中的效果 */
/deep/ .el-calendar-table td.is-selected {background: rgba(37, 182, 255, 1) !important;
}
/* 移动的效果 */
/deep/ .el-calendar-table .el-calendar-day:hover {background: rgba(65, 105, 225, 0.7) !important;/* color: #fff; */
}
/* 边框颜色 */
/deep/ .el-calendar-table tr td:first-child {border-left: 1px solid #888 !important;
}/deep/ .el-calendar-table tr:first-child td {border-top: 1px solid #888 !important;
}/deep/ .el-calendar-table td {border-bottom: 1px solid #888 !important;border-right: 1px solid #888 !important;
}/deep/ .el-calendar__title {color: #68a8d0 !important;
}
/* 分割线的颜色 */
/deep/ .el-calendar__header {border-bottom: 1px solid #68a8d0 !important;
}
/* 月份选择的按钮 */
/deep/ .el-button-group>.el-button {background: none !important;color: #68a8d0 !important;border-color: #68a8d0 !important;
}
</style>
http://www.lryc.cn/news/466023.html

相关文章:

  • LinuxDebian系统安装nginx
  • Redis 数据类型Streams
  • 基智科技CEO张文战:探索火山引擎数据飞轮模式下的大模型应用新机会
  • 【AUTOSAR标准文档】AotuSar结构横向分层详解(RTE、BSW)
  • 新 Chrome 插件可检测 AI 伪造声音;Canary Speech 推出用于临床对话的语音分析技术丨 RTE 开发者日报
  • 1. 路由定义
  • 我们可以用微服务创建状态机吗?
  • 邦芒贴士:职场新人需远离的7种坏习惯
  • 面向医院的统一支付平台产品经验分享
  • http作业
  • AlDente Pro for Mac电脑 充电限制保护工具 安装教程【简单,轻松上手】
  • C语言数据结构之算法复杂度
  • HDU RSA
  • 数据仓库建设 : 主题域简介
  • 开源表单生成器OpnForm
  • Zookeeper面试整理-Zookeeper的基础概念
  • 验证archive_command配置是否正确
  • 2024.10.19小米笔试题解
  • SQL-SERVER导入excel表格
  • Vue学习笔记(三、v-cloak、v-text、v-html指令)
  • Java | Leetcode Java题解之第496题下一个更大元素I
  • 【ArcGIS微课1000例】0125:ArcGIS矢量化无法自动完成面解决方案
  • slam技术支持下的果园作物估产论文汇总
  • 政安晨【零基础玩转各类开源AI项目】基于本地Ubuntu (Linux ) 系统应用Gradio-Lite:无服务器 Gradio 完全在浏览器中运行
  • Spring 中的 @AUtowire 和 @Resource 用法和原理,以及避坑
  • 速盾:cdn能加速游戏吗?
  • 速盾:高防服务器防火墙的特性是什么?
  • 初识git · 远程操作
  • 深度学习:卷积神经网络(CNN)详解
  • 软件测试学习笔记丨Pycharm实用技巧