Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

抽离样式模块怎么写,说出思路,有无实践经验?[阿里航旅的面试题] #80

Open
IvyLian opened this issue Dec 14, 2016 · 5 comments

Comments

@IvyLian
Copy link

IvyLian commented Dec 14, 2016

面试题目中,这个题目不明白,什么叫抽离样式,还是叫法不一样呢?

@jonirrings
Copy link

我的理解是把常用的css样式单独做成css文件……通用的和业务相关的分离出来,通用的做成样式模块儿共享,业务相关的,放进业务相关的库里面做成对应功能的模块儿。

@IvyLian
Copy link
Author

IvyLian commented Dec 14, 2016

@jonirrings 我的理解也是这样,但是不知道正确与否

@jonirrings
Copy link

@IvyLian 感觉需要谷歌一下“css模块儿化最佳实践”:doge:

@markyun
Copy link
Owner

markyun commented Feb 28, 2017

@jonirrings 你理解的对,详细请看http://nec.netease.com/standard/css-sort.html

@jeffacode
Copy link

@IvyLian 感觉需要谷歌一下“css模块儿化最佳实践”:doge:

对的,这道题指的应该是CSS模块化如何做

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants