css - 响应式设计

标签 css responsive-design

我们有响应式设计的标准尺寸吗?一般来说,我认为它适合手机、平板电脑、iPad、笔记本电脑、台式机。但是现在我和我的客户遇到了很多问题,他们提示 4.5"屏幕的设计不好,三星 note mobile 等的设计不好,这是我的错吗?我们有响应式的标准尺寸吗设计。这样我就可以向我的客户解释。请提出建议。

最佳答案

我总是从这个媒体查询模板开始:

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen 
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen 
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen 
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

关于css - 响应式设计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20515880/

相关文章:

jquery - 无法将 Bootstrap 加载到整页 js

html - 部署到主机时字体不工作

html - 将悬停导航栏编码为仅在滚动时出现

html - 使输入填满导航栏中的整个可用空间

css - Bootstrap - 强制对齐响应元素

html - Zurb 的基础菜单按钮是如何编码的?

Javascript/jQuery - height() 和 .css( {'height' }) 之间是否存在性能差异

html - 想要 Div 向右移动,

html - 为什么 body 在所有移动设备上都在右侧被切断?

html - 元名称 ="viewport"内容 ="width=device-width"不适用于 Kendo UI Mobile