当前位置: 首页 > 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.mrgr.cn/news/52264.html

相关文章:

  • 【升华】人工智能10大常用算法与及代码实现(汇总)
  • QTableView 接口详情
  • C语言小游戏--猜数字
  • 安达发|机械零件APS生产排程系统的多种排序规则
  • 文件IO(Linux文件IO,目录操作函数)
  • centos ping能通但是wget超时-解决
  • 【随时随地学算法】本地部署hello-algo结合内网穿透远程学习新体验
  • 怎么裁剪图片的一部分?这几种裁剪图片的方法很多人在用!
  • [Java基础] 异常处理机制
  • 测试神器~Fiddler的使用方法和操作实例
  • 那些率先在行业中推行IPD的企业命运如何?
  • java8 字符串数组验证包含关系
  • kali——fenjing的使用
  • 深度学习-26-基于PyTorch的多层感知机DNN
  • c# 前端无插件打印导出实现方式
  • RFID应急物资管理升级:智慧系统的强大优势
  • Sketch替代工具大盘点,第一款真是神仙软件!
  • C#从零开始学习(Head First C#)
  • 我谈一阶差分算子的演化
  • 什么是CRM销售漏斗?如何用CRM从0-1构建销售漏斗?