我有下面的右侧边栏,它在调整浏览大小时会重叠页面边框,我需要固定位置,因此在滚动页面时保持固定,我在堆栈中搜索了几个小时,尝试了其他选项,但没有成功,不确定媒体查询是否可以在这里提供帮助:
<div class="block-cat" style="background: #f3f3f3; padding: 20px; position: fixed; width:20%">
position:absolute
position:fixed