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

移动适配建议 #4

Open
luvletter2333 opened this issue Mar 18, 2020 · 3 comments
Open

移动适配建议 #4

luvletter2333 opened this issue Mar 18, 2020 · 3 comments

Comments

@luvletter2333
Copy link
Contributor

luvletter2333 commented Mar 18, 2020

目前默认的宽度是>=1280px,是在

.main-container {
  width: 80%;
  min-width: 1024px;
  max-width: 1366px;
  ...
}

中定义的 (1024px / 0.8 = 1280px)
所以为<=1280px宽度的屏幕做适配是必须的
建议的分界标准:来自Bootstrap 3

@media (max-width: 768px) { 

}

@media (min-width: 769px) and (max-width: 992px) { 

}

@media (min-width: 993px) and (max-width: 1280px) { 

}
@luvletter2333
Copy link
Contributor Author

luvletter2333 commented Mar 18, 2020

突然发现 BootStrap4 中Guid System有所变化:https://v4.bootcss.com/docs/layout/grid/#grid-options

@media (max-width: 576px) { 

}

@media (min-width: 577px) and (max-width: 992px) { 

}

@media (min-width: 993px) and (max-width: 1280px) { 

}

这样适配可能会更好
<=576的专门为手机版做
576~992的为Pad类产品做
992~1280的为窄屏幕做(其实改一下max-width就行了wjd)

默认的为宽屏幕

@Suzichen
Copy link
Member

突然发现 BootStrap4 中Guid System有所变化:https://v4.bootcss.com/docs/layout/grid/#grid-options

@media (max-width: 576px) { 

}

@media (min-width: 577px) and (max-width: 992px) { 

}

@media (min-width: 993px) and (max-width: 1280px) { 

}

这样适配可能会更好
<=576的专门为手机版做
576992的为Pad类产品做
992
1280的为窄屏幕做(其实改一下max-width就行了wjd)

默认的为宽屏幕

根据实际测试,宽度<1024时才会影响观看,
由于目前没有pad设计图,所以暂时将小于1024的屏幕全部适配为移动样式。

随后也会抽空适配一下宽度576以上的样式,暂定的方法是把侧栏设置为可收缩,看效果如何

@luvletter2333
Copy link
Contributor Author

luvletter2333 commented Mar 23, 2020 via email

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