文件名称:px2vw:屏幕适应,像素到大众
文件大小:10KB
文件格式:ZIP
更新时间:2024-05-23 09:46:26
JavaScript
px2vw css的px到vw。 在线编辑器: : 安装 npm install px2vw 目录./dist文件:支持AMD模块./dist ,或直接[removed] Include( px2vw将被注册为全局变量)。 API(英文) px2vw(width,content [,minWidth [,fixedNum]]) width < Number> Client width(px)。默认值: 320 content <字符串> css源文件内容 minWidth < Number>可选,客户端最小宽度(px)。 默认值: 320 。 如果大众单位太小,将不会显示。 例如,在320屏幕上不显示0.0125vw。 (v1.2.2更新) fixedNum < Number>可选,十进制单位为toFixed参数。 值越小,文件越小,但准确性越低。 默认值: undefi
【文件预览】:
px2vw-master
----package.json(472B)
----dist()
--------px2vw.min.js(598B)
--------px2vw.js(1KB)
----LICENSE(1KB)
----README.md(1KB)
----docs()
--------images()
--------javascripts()
--------stylesheets()
--------index.html(2KB)
----test()
--------index.html(456B)
----px2vw.js(1KB)