增加ion.RangeSlider的高度?

编程入门 行业动态 更新时间:2024-10-25 00:36:43
本文介绍了增加ion.RangeSlider的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前正在为我的项目使用ion.RangeSlider,可以在这里找到:

I am currently using ion.RangeSlider for my project which can be found here:

ionden/a/plugins/ion.rangeSlider/en.html

它很好用,但我想知道是否有人知道如何增加滑块的尺寸/高度?我已经尝试过身高&填充无济于事.我可以降低高度,但似乎可以达到一定的高度.

It works great but I'm wondering if anyone knows how to increase the size/height of the slider? I've tried height & padding with no avail. I can decrease the height but it seems to cap out at a certain height.

谢谢.

推荐答案

Ion.RangeSlider使用图像作为背景,因此,不可能仅在CSS上使用height.但是您可以使用:

The Ion.RangeSlider is using an image as background, therefore, it isn't possible to simply use height on CSS. But you can use:

.irs-bar, .irs-line,.irs-slider{ transform: scaleY(1.2); }

增加滑动条/线.并增加整个组件:

To increase the slider bar/line. And to increase the whole component:

.irs{ transform: scaleY(1.2); }

请注意,scaleY是百分比增长.

Note that scaleY is a percentual increase.

更多推荐

增加ion.RangeSlider的高度?

本文发布于:2023-11-23 03:22:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619897.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:高度   ion   RangeSlider

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!