When using rem layout, the problem of inaccurate dimensions of making broadcast pictures or scrolling effects

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.

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-1eb0830-22e0.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-1eb0830-22e0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?