z-index设置以后,不起作用,查了以后,说要设置position以后才可以。 设置position: relative;以后,起作用。 转载于:https://blog.51cto.com/here2142/1158110