the difference between RGBA and opacity.

rgba

opacity

opacity会继承父元素的opacity属性,而rgba设置元素的后代元素不会继承不透明属性