css - 如何为超大屏幕编写媒体查询(4000 像素以上,即 62 英寸显示器)
问题描述
我正在为超过 4000 像素的 62 英寸大屏幕编写媒体查询。
谁能指导我如何为超大屏幕编写媒体查询。
.component.css
@media (max-width: 4000px){
#map {
width: 100%;
}
.overlay {
position: absolute;
left: 0;
background-image: linear-gradient(315deg, #2d3436 0%, #000000 74%);
opacity: 0.9;
z-index: 1000;
height: 700px;
bottom: 0;
}
.overlay2 {
position: absolute;
width: 1500px;
height: 2000px;
top: 0;
/*margin-top: 57px;*/
right: 0;
bottom: 0;
z-index: 1000;
background-image: linear-gradient(315deg, #2d3436 0%, #000000 74%);
opacity: 0.6;
overflow: auto;
}
解决方案
您可以尝试使用
@media only screen and (min-width: 4000px){
#id {
desired css
}
}
推荐阅读
- intellij-idea - IntelliJ 多行三元缩进
- google-apps-script - TypeError:找不到对象的默认值
- java - 使用java同时进行多个数据库连接和查询时是否应该使用同步?
- swift - 导航项的titleView向左移动?
- python - 现在反馈连接是否有效
- javascript - 对象数组转换为按索引排序的对象(Javascript)
- karate - 如何使用功能文件在空手道中实现 for 循环
- java - ANDROID中Intent的GetStringExtras默认值是多少?
- vue.js - 在 service-worker 中使用 vue store
- c - 在c中初始化一个扫雷艇