gpt4 book ai didi

css - ionic 4 如何将 ionic 范围引脚放置在范围底部

转载 作者:行者123 更新时间:2023-11-28 19:19:06 24 4
gpt4 key购买 nike

我想将 ionic range pin 放在旋钮的底部并使其始终可见我如何在 ionic 4 中执行此操作,我知道如何在 ionic 3 中执行此操作但它似乎在 ionic 4 中不起作用这可能是由影子 DOM 引起的

我无法访问 .range-md .range-pin因为它在 shadow dom 中,而且 .range-md .range-旋钮 handle .range-pin无法访问

.range-md .range-knob-handle .range-pin {
transform: translate3d(0, 0, 0) scale(1); }

.range-md:not(.range-has-pin) .range-knob-handle .range-knob {
transform: scale(1); }

.range-ios .range-knob-handle .range-pin {
transform: translate3d(0, 0, 0) scale(1); }

如何将它们放在 ionic 4 的底部?

最佳答案

This CSS will work to visible rangebar pin always.

.range-md .range-knob-handle .range-pin {
transform: translate3d(0, 0, 0) scale(1); }

.range-md:not(.range-has-pin) .range-knob-handle .range-knob {
transform: scale(1); }

.range-ios .range-knob-handle .range-pin {
transform: translate3d(0, 0, 0) scale(1); }

and, This CSS will work to move position of pin, if want to move pin to bottom, set css according to that. Also you can remove pin background using this css also.

.range-md .range-pin {
color: #252525;
top: 26px;
background: transparent;
}

关于css - ionic 4 如何将 ionic 范围引脚放置在范围底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57706000/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com