问答详情
源自:7-8 切换背景图像综合练习题

换了图片为啥缩略是透明的呀

qwq 嘤~

提问者:qq_大执_0 2017-07-18 14:26

个回答

  • Ov学无止境vO
    2017-07-24 16:00:14

     a:hover:before{

                opacity:0;

                }

    这是鼠标移动到a::before之上透明度为0

  • Ov学无止境vO
    2017-07-24 15:58:10

      a::before{

                content:"";

                display: block;

                height: 120px;

                width: 120px;

                border: 5px solid #fff;

                border-radius: 50%;

                position: absolute;

                left: 50%;

                margin-left: -60px;

                z-index: 99999;

                top: -80px;

                background: rgba(0,0,0,0.3);

                }

    background: rgba(0,0,0,0.3);最后0.3是设置透明度