undefinedfix
Sign in

The usage of uni app in H5 and app. /How to solve the deep / CSS compatibility problem?

thienhabetsi edited in Sat, 09 Jul 2022

This is true on the H5 side and on the app side

How can I change the style of the native component

                /deep/ .uni-slider-handle-wrapper {
                    height: 10upx!important;
                }
                /deep/ .uni-slider-thumb{
                    display: none!important; 
                }
                /deep/ .uni-slider-track{
                    background: #EC253C!important;
                }
                /deep/ uni-slider{
                    margin-left: 0!important;
                }
                只在h5端生效,在app运行这个穿透不了,怎么解决呀?
2 Replies
pazhitnov
commented on Sun, 10 Jul 2022

On the H5 side, the class prefix is uni, and on the app side, Wx

Chuss
commented on Sun, 10 Jul 2022

If you can't penetrate it, change the source code of the component