【发布时间】:2012-08-16 23:35:13
【问题描述】:
我正在尝试使用display: none,因此元素将显示在较小的分辨率(或移动设备)上,但不会显示在较大屏幕尺寸的主 css 上。
我认为它没有显示可能是合乎逻辑的,但我无法找到解决此问题的方法。
footer {
display: none;
}
@media handheld and (max-width:480px),
screen and (max-device-width: 480px),
screen and (max-width: 600px)
{
footer {
background-color: #colour;
position:fixed;
bottom: 0;
left: 0;
right: 0;
}
}
【问题讨论】: