我想隐藏这个侧边栏在移动设备,我想这个编码,如何隐藏移动设备中的元素? CSS
.sidebar__area:last-child .widget:last-child, .sidebar__area.is_stuck .widget:last-child{
display:none;
}
这完全遮住了它。但是,当我尝试这一点,这是行不通的,
@media screen and (min-device-width: 100px) and (max-device-width: 950px{
sidebar__area:last-child .widget:last-child, .sidebar__area.is_stuck .widget:last-child{
display:none;
}
你缺少一个右括号(当然,*括号*是准确的)的括号之前'(最大设备宽度:!950像素{'始终验证你的CSS –
由于工程@Paulie_D –