vue 样式加scoped不起作用 局部更改element-ui的默认样式

https://www.cnblogs.com/Mr-Rshare/p/12597718.html

https://blog.csdn.net/weixin_30654583/article/details/99807074

https://blog.csdn.net/qq_33654627/article/details/103732996

https://blog.csdn.net/weixin_39950595/article/details/92849667

https://blog.csdn.net/weixin_34026276/article/details/93692998

https://blog.csdn.net/zebghfv/article/details/120995644

https://blog.csdn.net/laishaojiang/article/details/102949876

https://blog.csdn.net/qq_41725450/article/details/103526812

https://blog.csdn.net/qq_39167934/article/details/105515923

vue中令人头疼的element-ui组件默认css样式修改https://juejin.cn/post/7011016159545786376

一定要加上唯一的作用域 即最外层的class名,比如我上面的my-class 。
它限定了当前table的修改样式只能在该class以及其子元素中生效 否则,table的样式仍会全局覆盖.

<template>
	<div class="my-class">
            <el-table>
            </el-table>
        </div>
</template>

<script>
</script>

<style scoped="scoped" lang="scss">
</style>

<style>
	
    /* 修改element-ui中table组件的样式 */

    .my-class__expand-column .cell {
            display: none;
    }

    .my-class .el-table tbody tr:hover>td {
            cursor: pointer;
    }


    .my-class .el-form .el-form-item  .el-input__inner:focus{
             border: 1px solid #3D66E4;
       }
   
</style>

修改ElementUI表格样式

https://blog.csdn.net/weixin_38514634/article/details/86512445

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值