# flexible **Repository Path**: wansxlysys/flexible ## Basic Information - **Project Name**: flexible - **Description**: 移动端rem布局 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-18 - **Last Updated**: 2021-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 优化后的flexible 1. 将viewprot标签放置head `` 2. 引入flexble.js (建议放置在head优先调用) > 调用示例 ``` var flexible = new Flexible({ // 基准大小 1rem = 100px (方便换算) baseSize: 100, // 最大调节宽度 (超出此宽度不在调节根标签字体大小) maxWidth: 750, // 设计稿宽度 designWidth: 375, // 隐藏属性名 (页面初始化完成前隐藏) hideAttr: "l-hide", }); ```