How to set a background opacity without affecting the text

This question already has an answer here:

  • Opacity of background-color, but not the text [duplicate] 5 answers
  • How do I give text or an image a transparent background using CSS? 26 answers

  • 你可以使用rgba来仅使背景颜色透明,例如:

    background: rgba(255, 249, 192, 0.7); 
    
    链接地址: http://www.djcxy.com/p/28086.html

    上一篇: 不透明只有不透明

    下一篇: 如何在不影响文本的情况下设置背景不透明度