yeungmy-adaption
1.0.1 • Public • Published This is the relevant processing for screen adaptation
- @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
- }
- ps: Keep base_size between zoom_in_width and zoom_out_width
- Greater than max_width or less than min_width will not change
- @description Rem to PX in current body font-size
- @date 2022/9/30 15:19
- @param remNum {number} rem value
Package Sidebar
Install
Weekly Downloads