# 自适应JS **Repository Path**: dd0519_admin/self-adaption ## Basic Information - **Project Name**: 自适应JS - **Description**: 根据设计稿进行自适应的一个JS脚本,不依赖任何插件,只能在支持rem的设备或者浏览器中运行。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-12-16 - **Last Updated**: 2025-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: JavaScript ## README # 自适应JS #### 介绍 根据设计稿进行自适应的一个JS脚本,不依赖任何插件,只能在支持rem的设备或者浏览器中运行。 #### 使用说明 自执行JS脚本,这个插件是为了适应屏幕宽度的rem布局设计,完全还原UI设计稿样式。 参数说明: designWidth:UI设计稿的设计宽度, maxWidth:是前端页面书写的最大宽度 默认设置的为750,750。这两个参数在使用前需要自己根据自己需要进行设置。 为了方便计算,1 rem = 100 px;