Jssor slider 100% width

后端 未结 5 1662
北荒
北荒 2020-12-03 01:17

I try to get a jssor slider working with 100% width (the container has a width of 70%). The problem is, that jssor only works with pixels, so if I use a slide_container with

5条回答
  •  失恋的感觉
    2020-12-03 02:10

    For anyone who comes looking for $ResizeCanvas. They've finally added a function that can help get the required slider size with $ScaleSize. Thanks jssor

    For the latest version 25.2.0, we added a new method $ScaleSize(width, height) instead of $ResizeCanvas.

    (this was first posted here)

提交回复
热议问题