外层div透明使用:background: rgba(0, 0, 0, 0.5); 内层div透明使用:opacity:1; 这么样就可以了。不要外层使用opacity,会影响内层也透明的。主要是rgba这个。 相关文章: