Unexpected scrolling behavior within flex element [duplicate]
问题 This question already has answers here : Centered elements inside a flex container are growing and overflowing beyond top [duplicate] (3 answers) Can't scroll to top of flex item that is overflowing container (7 answers) Closed last year . Could somebody explain why the top section is being cut off here: https://jsbin.com/yuhexoz/edit <div style=" display: flex; flex-direction: row; justify-content: center; align-items: center; position: relative; top: 100px; left:100px; width:200px; height: