position:fixed基于浏览器定位。如果要设置父元素定位,需要为父元素设置样式transform:translate(0)。..在这个元素的上层,亲测有效。
position-fixed基于父元素定位相关文章