Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.1k views
in Technique[技术] by (71.8m points)

<el-table>排序箭头的颜色

本地项目中修改了<el-table>的排序箭头的颜色,项目上线后,修改失效了
代码如下

.detail-list {
        th {
          padding: 6px 0;
        }
        .descending .ascending {
          border-bottom-color: #f8da68 !important;
        }
        .ascending .descending {
          border-top-color: #f8da68 !important;
        }
        .sort-caret.ascending {
          border-bottom-color: #fff;
        }
        .sort-caret.descending {
          border-top-color: #fff;
        }

本地项目下
image.png
线上
image.png
两者冲突了,如何让线上与本地的一致


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. 检查默认样式引入顺序是否太靠后了,默认样式应该放在第一位加载,防止将自定义样式覆盖。
  2. 把所有修改框架的默认样式放在同一个文件下,并且调整加载顺序靠后。

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...