postcss-mqwidth-to-class:PostCSS插件将最小最大宽度的媒体查询转换为类,对于不支持媒体查询的客户端(例如IE8)很有用

时间:2024-06-01 05:01:48
【文件属性】:

文件名称:postcss-mqwidth-to-class:PostCSS插件将最小最大宽度的媒体查询转换为类,对于不支持媒体查询的客户端(例如IE8)很有用

文件大小:13KB

文件格式:ZIP

更新时间:2024-06-01 05:01:48

JavaScript

PostCSS mqwidth-to-class 插件将最小/最大宽度的媒体查询转换为类,对于不支持媒体查询的客户端(例如IE8)很有用。 例子 /* Input example */ @media ( min-width : 768 px ) and ( max-width : 991 px ) { . foo { float : left; } } /* Output example */ . min-width-768px . max-width-991px . foo { float : left; } 用法 postcss ( [ require ( 'postcss-mqwidth-to-class' ) ] ) 有关您的环境的示例,请参见文档。 笔记 仅支持px单位。 忽略查询中的其他任何内容,例如屏幕,打印,方向。 您需要J


【文件预览】:
postcss-mqwidth-to-class-master
----.travis.yml(59B)
----.eslintrc(5KB)
----index.js(6KB)
----package.json(878B)
----test()
--------test.js(2KB)
--------fixtures()
----gulpfile.js(553B)
----LICENSE(1KB)
----.npmignore(72B)
----.gitignore(28B)
----CHANGELOG.md(605B)
----README.md(1KB)

网友评论