css-shapes-polyfill:CSS 形状规范的 Polyfill

时间:2021-06-13 23:01:32
【文件属性】:
文件名称:css-shapes-polyfill:CSS 形状规范的 Polyfill
文件大小:2.31MB
文件格式:ZIP
更新时间:2021-06-13 23:01:32
JavaScript 形状-polyfill 形状 polyfill 是规范的 JavaScript 实现。 您可以使用 polyfill 来近似不支持该功能的浏览器中的 CSS Shapes 行为。 默认情况下,当原生形状实现可用时,polyfill 将不会运行。 使用 polyfill 要使用 polyfill,请下载或构建shapes-polyfill.js或shapes-polyfill.min.js (缩小版)。 然后,将其包含在您的页面中: [removed][removed] 之后,在您的域可访问的<link>或<style>样式表中设置任何形状样式: .shape { float: left; shape-outside: circle(50%); shape-margin: 1em; } 并添加所需的标记:
【文件预览】:
css-shapes-polyfill-master
----.gitignore(43B)
----package.json(616B)
----src()
--------shape-value.js(14KB)
--------shape-polyfill.js(6KB)
--------rect.js(11KB)
--------shape-info.js(7KB)
--------style-polyfill.js(5KB)
--------polygon.js(15KB)
--------metrics.js(4KB)
--------raster.js(8KB)
----shapes-polyfill.min.js(32KB)
----shapes-polyfill.js(67KB)
----Gruntfile.js(3KB)
----NOTICE.txt(907B)
----README.md(5KB)
----tests()
--------style-polyfill-tests.html(498B)
--------polygon-tests.js(30KB)
--------shape-value-tests.js(9KB)
--------polygon-editor-code.js(15KB)
--------metrics-tests.html(471B)
--------resources()
--------shape-info-tests.js(32KB)
--------shapes-performance.html(7KB)
--------raster-tests.html(515B)
--------shape-value-tests.html(530B)
--------polygon-editor.html(2KB)
--------sandbag-optimization.html(5KB)
--------polygon-tests.html(510B)
--------raster-tests.js(35KB)
--------shape-test-suite.html(1KB)
--------rect-tests.html(469B)
--------shape-info-tests.html(655B)
--------rect-tests.js(4KB)
--------metrics-tests.js(4KB)
--------style-polyfill-tests.js(4KB)
----LICENSE.MD(12KB)
----CONTRIBUTING(246B)
----dev()
--------cla-form-thanks.html(1KB)
--------js()
--------css()
--------cla-form.html(29KB)
--------img()
----demos()
--------green-tea.jpg(2.25MB)
--------simple-shape-outsides.html(6KB)
--------self-intersecting-polygon.html(2KB)
--------circles.png(684B)
--------green-tea.html(2KB)
--------polygon-demo.html(3KB)

网友评论