想让谁在上面就用绝对定位就好了;z-index控制优先级,但此div必须是absolute 转载于:https://www.cnblogs.com/904650976blog/p/5359745.html