V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
huangsh

后端狗。求救前端问题,有偿

  •  
  •   huangsh · Dec 5, 2021 · 2364 views
    This topic created in 1610 days ago, the information mentioned may be changed or developed.

    我目前使用这个 react 的 steps 组件 https://yarnpkg.com/package/rc-steps ,但是我这边不知道怎么把 step 下面的 rc-steps-item-tail 样式覆盖掉,换成我自己自定义的样式;知道怎么改的大神,加我微信 15766264244 ,发红包

    3 replies    2021-12-05 10:35:54 +08:00
    vance123
        1
    vance123  
       Dec 5, 2021
    用!important?
    yuzo555
        2
    yuzo555  
       Dec 5, 2021
    使用 !important 是个坏习惯,尽量把你要写的样式的选择器改精确一些,来提高你的样式的优先级。如果真的需要全局覆盖它的样式,可以把你的 CSS 放到它的后面。

    参考: https://developer.mozilla.org/zh-CN/docs/Web/CSS/Specificity
    huangsh
        3
    huangsh  
    OP
       Dec 5, 2021
    已解决,谢谢大佬们的建议
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2358 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:32 · PVG 18:32 · LAX 03:32 · JFK 06:32
    ♥ Do have faith in what you're doing.