这个很简单在父元素中使用position:relative即可解决 转载于:https://www.cnblogs.com/istianyu/archive/2013/01/03/2843008.html