多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
选择器也可以继承其他CSS文件里面的规则。 [`another.css`](https://github.com/ruanyf/css-modules-demos/blob/master/demo05/components/another.css) ~~~ .className { background-color: blue; } ~~~ [`App.css`](https://github.com/ruanyf/css-modules-demos/blob/master/demo05/components/App.css)可以继承`another.css`里面的规则。 ~~~ .title { composes: className from './another.css'; color: red; } ~~~ 运行这个示例。 ~~~ $ npm run demo05 ~~~ 打开`http://localhost:8080`,会[看到](http://ruanyf.github.io/css-modules-demos/demo05/)蓝色的背景上有一个红色的`h1`。