when making an effect with scrollLeft, there is a deviation between the width and height obtained with jq and the true size, and sometimes a 1-pixel edge will be exposed.
when making an effect with scrollLeft, there is a deviation between the width and height obtained with jq and the true size, and sometimes a 1-pixel edge will be exposed.
whether your rem is controlled by CSS or JS. If it is controlled by JS, use document.documentElement.style.fontSize to obtain the specific px size. If it is controlled by CSS, you can directly obtain the px width of the corresponding rem according to different screen widths
picture and display:block; into blocks.