postcss-wxss

2019-03-06 admin

postcss-wxss是什么

什么是postcss-wxss,PostCSS plugin to transpile wxss or acss.

postcss-wxss使用教程帮助文档

PostCSS Wxss Build Status

PostCSS plugin to transpile wxss or acss…

@media screen and (min-width: 480rpx) {
  body {
    background-color: lightgreen;
    animation-name: 'kkk';
  }
}

#main, icon {
  border: 1rpx solid black;
}

ul li, .page, page {
  padding: 5rpx 3rpx;
}
@media screen and (min-width: 480rpx) {
  body {
    background-color: lightgreen;
    animation-name: 'kkk';
  }
}

#main, wx-icon {
  border: %%?1rpx?%% solid black;
}

ul li, .page, body {
  padding: %%?5rpx?%% %%?3rpx?%%;
}

Usage

postcss([ require('postcss-wxss') ])

See PostCSS docs for examples for your environment.

Reference

writing-a-plugin

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-56820.html

文章标题:postcss-wxss

回到顶部