css设置背景透明度 设置背景透明用: background-color: rgba(0, 0, 0, 0.4); 虽然opacity:0.5;也可以设置背景透明,但是会影响整体;推荐使用rgba设置背景透明,只会在当前的内容内起作用