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

pc和移动两套css 你们怎么处理? #159

Open
vaynevayne opened this issue Apr 25, 2023 · 1 comment
Open

pc和移动两套css 你们怎么处理? #159

vaynevayne opened this issue Apr 25, 2023 · 1 comment

Comments

@vaynevayne
Copy link

  1. 分两个项目,分开部署吗?
  2. 样式全写css文件里,编译两次。编译出两个css文件,

2.1 引用方式:浏览器js里创建link标签,写要求编译css时,不能加hash.css
2.2 服务端html模板,根据请求的浏览器参数,三目运算判断使用哪个.css,这其实也是服务端渲染,不过css文件要是可以预先,这步就很快,服务端渲染,好复杂,不知道怎么拆

@CheaterScript
Copy link

移动优先,PC的样式用媒体查询

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

2 participants