我需要在高分辨率的显示器上拥有这些属性:
max-height: 350px;
overflow-y: auto;
当监视器宽度从 1000px 开始时不适用,写了以下内容:
.main-section__sidebar__content {
width: 100%;
max-height: 350px;
overflow-y: auto;
color: #303133;
font: 14px/17px 'latoregular', sans-serif;
}
@media (min-widh:1000px) and (max-width:3000px){
.main-section__sidebar__content {
max-height: none;
overflow-y: visible;
}
}
我不明白是什么问题,请帮助我。
max-height/max-width
值得使用inherit