【问题标题】:Custom styling for Ant Design Steps connector?Ant Design Steps 连接器的自定义样式?
【发布时间】:2021-10-27 11:38:44
【问题描述】:

我正在寻找一种方法来自定义 Ant Designs Steps 组件中连接线的颜色/宽度:

我尝试通过检查器查看,但连接器没有显示为它自己的元素,这意味着我无法通过 className 设置它的样式。

提前感谢您的帮助。

【问题讨论】:

    标签: css reactjs user-interface antd


    【解决方案1】:

    您可以覆盖.ant-steps-item-title 类来实现这一点。例如:

    .ant-steps-item-title:after {
      background-color: red !important;
    }
    

    DEMO

    【讨论】:

    • 完美运行!这样一个奇怪的修复虽然大声笑。谢谢
    猜你喜欢
    • 2020-07-04
    • 2023-01-27
    • 1970-01-01
    • 1970-01-01
    • 2019-12-25
    • 1970-01-01
    • 1970-01-01
    • 2020-11-03
    • 2021-05-20
    相关资源
    最近更新 更多