用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
选择器也可以继承其他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`。