If this slider is used on a mobile phone, it will move up and down, but not in the electronic version.

The

slider code is here
https://codeshelper.com/q/10.

.

question 1

if this slider is running on the computer, the left and right slides will not move up and down.
but when you use your mobile phone to slide left and right, you can also move up and down at the same time. There is no way to fix it.
how can you solve this?

question 2

I currently set the degree 100vw
in jssorLayout and sliders so that I can display 100% normally. If I am writing 100% , I cannot run
but 100vw there is a problem that the size of my server is changed, and the Cover display will be incorrect (it will not be 100%) < br


  1. question 1 remember when you commented on the following code, adding two lines of code after the comment

    //ScaleSlider();
    
    //$(window).bind("load", ScaleSlider);
    //$(window).bind("resize", ScaleSlider);
    //$(window).bind("orientationchange", ScaleSlider);
    $('.sliders').css('width','100%');   //
    $('.jssorLayout').css('width','100%'); //
  2. question 2 has been answered for you before: defining widths in css will be overridden by slider's own script, because the slider script will parse 100% into a 100px display, which is a bug.
    if you want to change their width, please use the js script to control,
  $('.sliders').css('width','100%');
  $('.jssorLayout').css('width','100%');
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3344-31e7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3344-31e7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?