.parent {position: relative, overflow: visible} .child {position: absolute, top: 0} 在父级或父级的父级上面加上overflow: visible