yeungmy-adaption
v1.0.1
Published
* @description The page uses REM processing * @date 2022/9/30 11:15 * @param win {any} window object * @param base_size {number} set body font-size * @param options * * options: { * max_width: number, // The maximum width of the adaptat
Downloads
2
Readme
This is the relevant processing for screen adaptation
remHandle
explain
- @description The page uses REM processing
- @date 2022/9/30 11:15
- @param win {any} window object
- @param base_size {number} set body font-size
- @param options
- options: {
- max_width: number, // The maximum width of the adaptation
- zoom_in_width: number, //The base width of the design, Beyond this boundary, amplification occurs
- zoom_out_width: number,//Beyond this boundary, shrinkage occurs
- min_width: number//Minimum width for adaptation
- }
- options: {
- ps: Keep base_size between zoom_in_width and zoom_out_width
- Greater than max_width or less than min_width will not change
remToPx
explain
- @description Rem to PX in current body font-size
- @date 2022/9/30 15:19
- @param remNum {number} rem value