Skip to content
On this page

calculateAutoStyle ​

用于自动计算宽度和高度的自适应样式

引入方式 ​

ESM ​

javascript
import { calculateAutoStyle } from "tool-assistant;

示例 ​

javascript
// 引入 calculateAutoStyle 函数
import { calculateAutoStyle } from "tool-assistant";

// 示例使用
const container = document.querySelector(".container");
calculateAutoStyle(container);

Released under the MIT License.