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

响应式设计的屏幕尺寸断点 #171

Open
Dream4ever opened this issue Aug 6, 2021 · 0 comments
Open

响应式设计的屏幕尺寸断点 #171

Dream4ever opened this issue Aug 6, 2021 · 0 comments
Labels
CSS The world is beautiful

Comments

@Dream4ever
Copy link
Owner

资料整理

目前有一些页面需要实现响应式设计(Responsive Design),要在桌面端和移动端分别呈现不同的样式,如果要通过 CSS 来区分,那么就要用到媒体查询(@media)这个功能。

TailwindCSS 将常见的屏幕尺寸分为五类

image

Stack Overflow 上则有一篇帖子专门讨论这个知识点:Media Queries: How to target desktop, tablet, and mobile?

目前在一个业务中,自己只是简单地用屏幕宽度值 640px 来区分桌面端和移动端设备,小于等于它的都认为是移动端设备,否则认为是桌面端设备。

@Dream4ever Dream4ever added the CSS The world is beautiful label Aug 6, 2021
@Dream4ever Dream4ever reopened this Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS The world is beautiful
Projects
None yet
Development

No branches or pull requests

1 participant