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

中国建设手机银行app下载夫唯seo教程

中国建设手机银行app下载,夫唯seo教程,旅游型网站的建设背景图片,wordpress中写入程序表格样式修改 文章目录 表格样式修改一、表格背景颜色修改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.hkea.cn/news/304256/

相关文章:

  • 罗湖区网站公司专业模板建站
  • 哪有备案好的网站国产系统2345
  • 网站开发怎么让别人看到最新营销模式有哪些
  • ssm网站开发源码百度推广多少钱一个月
  • 手游门户网站建设appstore关键词优化
  • 齐河网站开发seo服务内容
  • 北京微信网站建设费用想卖产品怎么推广宣传
  • 网站上线的步骤厦门网站推广公司哪家好
  • 网站做app的软件有哪些百度一下你就知道下载
  • 界面设计的重要性百度seo关键词排名推荐
  • 股票做T网站直播营销
  • 北京手机网站建设公司排名技术优化seo
  • wordpress可爱的主题seo优化教程
  • 自己可以申请网站做外卖吗网站描述和关键词怎么写
  • 公司网站网页设计seo站长工具推广平台
  • 重庆南岸营销型网站建设公司哪家专业真实的网站制作
  • 郑州企业网站建设兼职推广渠道
  • 网站哪些数据优化大师的作用
  • 政府网站集约化建设总结营销软文推广平台
  • 学网站开发跟那个专业最相近百度站长平台注册
  • 网站开发python电脑培训班有哪些科目
  • 惠州响应式网站哪家好云盘搜索
  • spring做网站合肥seo排名收费
  • 做58网站怎么赚钱二十个优化
  • 做企业手机网站北京seo网站开发
  • 关于网站建设中原创文章的一些想法体育热点新闻
  • 天河做网站开发免费留电话号码的广告
  • 成都市金堂县网站建设免费seo在线工具
  • 计算机培训中心网站高端网站建设的公司
  • 成都建设路小学网站大作设计网站