Overriding css style?

后端 未结 2 2149
小鲜肉
小鲜肉 2020-12-05 04:55

I look on Stack Overflow, and didn\'t find the solution, I know how to override style if style exists, just change its property. But now I have a strange style to override <

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 05:23

    You just have to reset the values you don't want to their defaults. No need to get into a mess by using !important.

    #zoomTarget .slikezamenjanje img {
        max-height: auto;
        padding-right: 0px;
    }
    

    Hatting

    I think the key datum you are missing is that CSS comes with default values. If you want to override a value, set it back to its default, which you can look up.

    For example, all CSS height and width attributes default to auto.

提交回复
热议问题