在 React 中使用 semantic-ui

时间:2016-06-19 06:46:07   收藏:0   阅读:275

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

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

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

原文:http://www.cnblogs.com/zhaoyao91/p/5597351.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!