【发布时间】:2017-12-01 15:30:30
【问题描述】:
我正在使用响应式网站。
我想为所有大型桌面设计。
但我不知道大型桌面的确切媒体查询。
【问题讨论】:
-
这是一个不好的问题。请参考:stackoverflow.com/help/mcve
-
您如何定义“大型桌面”?
标签: html css media-queries
我正在使用响应式网站。
我想为所有大型桌面设计。
但我不知道大型桌面的确切媒体查询。
【问题讨论】:
标签: html css media-queries
尝试以下,它们是默认的引导断点。
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
}
/*========== Non-Mobile First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
}
/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
}
【讨论】: