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

网站建设与推广协议书百度信息流广告推广

网站建设与推广协议书,百度信息流广告推广,15年做哪些网站能致富,友情链接价格表格样式修改 文章目录 表格样式修改一、表格背景颜色修改1、方法一2、方法二 二、多级表头颜色修改 一、表格背景颜色修改 1、方法一 表格外套一个 div &#xff0c;修改div的背景色&#xff0c;并将表格背景色设置为透明 参考代码&#xff1a; <template><div cl…

表格样式修改

文章目录

  • 表格样式修改
    • 一、表格背景颜色修改
      • 1、方法一
      • 2、方法二
    • 二、多级表头颜色修改


一、表格背景颜色修改

1、方法一

表格外套一个 div ,修改div的背景色,并将表格背景色设置为透明
参考代码:

<template><div class="custom-table"><el-tablesize="mini"border:data="tableData":max-height="tableHeight"style="width: 100%"><el-table-columnv-for="(item, index) in tableColumns":key="index"v-bind="item"align="center"></el-table-column><el-table-columnlabel="操作"fixed="right"align="center"width="100"><template slot-scope="scope"><spanclass="del-btn"@click="emitEvent({eventName:'deleteItem',params:scope.row})">删除</span></template></el-table-column>           </el-table></div>
</template><script>export default {props: { tableData: {type: Array,default: () => []},tableHeight: {},tableColumns: {default: () => []}},data() {return { }}, }
</script><style lang="less" scoped>.del-btn {color: #4597EB;cursor: pointer;}.custom-table /deep/ .el-table, .el-table__expaned-cell {background-color: transparent;}.custom-table /deep/ .el-table tr {background-color: transparent !important;}.custom-table /deep/  .el-table--enable-row-transition .el-table__body td, .el-table .cell{background-color: transparent;}.custom-table /deep/ .el-table th.el-table__cell {background: transparent !important; // 表头背景透明}.el-table::before { //去除底部白线left: 0;bottom: 0;width: 100%;height: 0px;}
</style>

2、方法二

直接修改表格背景颜色

<template><div class="custom-table"><el-tablesize="mini"border:data="tableData":max-height="tableHeight"style="width: 100%"><el-table-columnv-for="(item, index) in tableColumns":key="index"v-bind="item"align="center"></el-table-column><el-table-columnlabel="操作"fixed="right"align="center"width="100"><template slot-scope="scope"><spanclass="del-btn"@click="emitEvent({eventName:'deleteItem',params:scope.row})">删除</span></template></el-table-column>           </el-table></div>
</template><script>export default {props: { tableData: {type: Array,default: () => []},tableHeight: {},tableColumns: {default: () => []}},data() {return {}},methods: {emitEvent ({ eventName, params }) {this.$emit(eventName, params)}}, }
</script><style lang="less" scoped>.del-btn {color: #4597EB;cursor: pointer;}.custom-table {background: transparent;}.custom-table /deep/ .el-table th.el-table__cell,/deep/ .el-table tr,/deep/.el-table th {color: '#FFF'; // 表格字体颜色background: red; // 表格背景颜色}</style>

二、多级表头颜色修改

<template><el-table :data="tableData" :header-cell-style="tableHeaderColor" border stripe>
</template><script>
export default {methods: {// 修改表头颜色tableHeaderColor ({ rowIndex, columnIndex }) {if (rowIndex === 0 && columnIndex === 0) {return "background:#D9EAFFFF;";}if (rowIndex === 0 && columnIndex === 2) {return "background: #FFF0E1FF;";}if (rowIndex === 0 && columnIndex === 3) {return "background: #E0F5E9FF;";}if (rowIndex === 0 && columnIndex === 4) {return "background: #D9EAFFFF;";}if (rowIndex === 0 && columnIndex === 5) {return "background: #FFF0E1FF;";}if (rowIndex === 0 && columnIndex === 6) {return "background: #E0F5E9FF;";}},}
}
</script><style></style>
http://www.yayakq.cn/news/582940/

相关文章:

  • 沈阳软件定制开发郑州网站优化哪家专业
  • 农业网站电子商务平台建设方案51个人网站
  • 建设农产品网站的背景宁波免费建网站
  • 邳州建设局网站前几年做哪个网站能致富
  • 怎么免费网站石家庄模板建站系统
  • 衡阳网站建设公司wordpress怎么安装到服务器
  • 有哪些做特卖的网站网络推广服务投诉
  • 自己做网站需要什么技术中国vpswindows野外农民工
  • 品牌网站建设坚持大蝌蚪官网制作公司
  • 做网站的核验单 是下载的吗电商ui设计是什么意思
  • diy定制网站做外贸怎么做
  • 免费建材网站模板微网站与手机网站
  • 工商局加强网站建设的通知响应式布局网站
  • 山东网站制作定制计算机网络技术电商网站建设与运营方向
  • 简述制作网站的步骤和过程网站上的幻灯片如何做
  • 余姚网站建设企业苏州网站建设开发哪家好
  • 自己做简单网站学校网站建设的必要性
  • 哪个网站免费做简历百度网站诚信认证
  • 手机视频网站搭建论坛网站开发费用
  • 怀化建设网站怎样建设一个好的企业网站
  • 关于jsp网站开发的最新书籍手机网站开发下崽
  • 建立一个网站的英文怎么接网站建设的单子
  • 网站建设概念股wordpress手机悬浮
  • 企业在网站推广网站开发要什么
  • 东莞做网页建站公司如何用wordpress挖比特币
  • 建网站需要那些步骤中山一站式营销推广平台
  • 关注网站制作网推拉新怎么做
  • 分析建设网站的可行性wordpress怎么开启下载收费功能
  • wordpress企业网站制作视频教程WordPress关键词过滤
  • 阳泉网站建设公司济南免费网站建站模板