php - 移动 woocommerce 小部件价格过滤器的 slider handle 起始位置

标签 php html css wordpress woocommerce

我想通过将 slider 的 handle 放在不同的起始位置来使 woocommcerce 小部件价格过滤器更加可见。例如。从范围条开始向右 10%。

请参阅下面的示例。

woocommerce 价格 slider 处理位置比较

enter image description here

这可以用 css/html 来完成吗?

您可以在以下位置仔细查看源代码:https://www.tequilaysoledad.com/shop/

最佳答案

您需要以某种方式为该幻灯片设置初始值。我无法检查这是否有效,但请尝试将其添加到您的标题中:

jQuery(function ($){
    $("#min_price").attr("value","10");
})

关于php - 移动 woocommerce 小部件价格过滤器的 slider handle 起始位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33389477/

相关文章:

php - Ruby 中的 preg_match_all 和 preg_replace

php - CI affected_rows 即使在更新后也总是返回 0

html - 如果将我的 css 键入 head 或链接到 .css 文件,为什么我会得到不同的结果?

css - 仅使用 CSS : Select first occurrence of class throughout whole document

html - Boxshadow 在 :hover but does in other one 上不工作

启用 PHP 执行程序?

php - 从 cakephp 中的另一个表获取表的计数

javascript - 在用户激活的动画期间暂停所有背景动画(jquery)

jquery - 如何在 li 中命名并显示图像?

javascript - 将图像绘制到 Canvas 并通过 base64 对其进行编码