CSS: position:fixed inside of position: fixed

前端 未结 6 1857
耶瑟儿~
耶瑟儿~ 2020-12-05 22:39

Okay, I\'ve noticed something, but couldn\'t find it in the CSS spec. Styling an element with position: fixed will position it absolutely, with respect to the b

6条回答
  •  遥遥无期
    2020-12-05 23:17

    I don't think this is really the intent. Things with fixed positioning are all positioned in relation to the window, if you have a fixed a child of another fixed, what do you want to happen? You can easily duplicate the behavior by not just position both of the fixed elements separately, or using other position to alter the child's position within the fixed element. :D

提交回复
热议问题