background only

This question already has an answer here:

  • How do I give text or an image a transparent background using CSS? 26 answers

  • You can do it like this:

    background-color: rgba(0,0,0,0.7);
    

    this changes the background color of black opacity to 0.7 without effecting anything else


    By using this color:

    background-color: rgba (0, 0, 0, .5); // black 
    

    This way, it will be 50% of the real color!

    It filters alpha object and provides you with the part of the real color with some transparency effect.

    链接地址: http://www.djcxy.com/p/28082.html

    上一篇: 如何制作半

    下一篇: 只有背景