小程序的实现方式:background-color:rgba(27,38,48,0.7); 原生CSS的实现方式:background: #000;opacity: 0.7; 转载于:https://www.cnblogs.com/KoKoLi/p/10102059.html