在 React 中使用 semantic-ui

React 易于使用 inline-style,而 semantic-ui 和一些特殊情况不得不使用样式文件。另外,浏览器兼容性问题也需要解决。

解决方案:同时使用 post-css + autoprefixer 和 inline-style-prefixer。

注意:semantic-ui 官网建议在 meteor 中使用 less-autoprefixer 来进行编译。为了统筹大局,我们还是继续使用 less 包,另外加持 post-css + autoprefixer 来对所有样式文件进行编译。

posted @ 2016-06-19 05:55  我不是照耀  阅读(1699)  评论(0编辑  收藏  举报