positon: fixed;
right: 4;
没有计算scroll的宽度;
因为fixed相对的是body。所以需要在body或者html上加overflow: scroll,才会计算scroll的宽度;
scroll不占用页面宽度的问题;
最新推荐文章于 2024-07-24 21:48:20 发布
positon: fixed;
right: 4;
没有计算scroll的宽度;
因为fixed相对的是body。所以需要在body或者html上加overflow: scroll,才会计算scroll的宽度;