offsetParent

本身定位为fixed
==> offsetParent:null(不是火狐)
==> offsetParent:body(火狐)

本身定位不为fixed
父级没有定位
==> offsetParent:body
父级有定位
==> offsetParent:定位父级

猜你喜欢

转载自blog.csdn.net/qq_43756675/article/details/104588553