为了账号安全,请及时绑定邮箱和手机立即绑定

晕晕晕晕晕

怎么做哦?感觉题都没搞清楚,做起脑壳全是晕的

正在回答

1 回答

            /*任务一、设置不同列表的背景色*/
            ul li:nth-of-type(1) a{
            background-color: #02646e;
            }
            ul li:nth-of-type(2) a{
            background-color: #eb0837;
            }
            ul li:nth-of-type(3) a{
            background-color: #67b374;
            }    
            ul li:nth-of-type(4) a{
            background-color: #e6674a;
            }    
            ul li:nth-of-type(5) a{
            background-color: #e61061;
            }
            /*任务二、设置缩略图形状*/
            ul li a::after{
            content:"";
            display: block;
            height: 120px;
            width: 120px;
            border: 5px solid #fff;
            border-radius: 50%;
            position: absolute;
            left: 50%;
            margin-left: -60px;
            z-index: 9999;
            top: -80px;
            }
            /*任务三、设置缩略图背景图像*/
            ul li:nth-of-type(1) a::after{
            background: url(http://www.w3cplus.com/demo/css3/CSS3Fullbackground/sbg1.jpg) no-repeat center;
            }
            ul li:nth-of-type(2) a::after{
            background: url(http://www.w3cplus.com/demo/css3/CSS3Fullbackground/sbg2.jpg) no-repeat center;
            }
            ul li:nth-of-type(3) a::after{
            background: url(http://www.w3cplus.com/demo/css3/CSS3Fullbackground/sbg3.jpg) no-repeat center;
            }
            ul li:nth-of-type(4) a::after{
            background: url(http://www.w3cplus.com/demo/css3/CSS3Fullbackground/sbg4.jpg) no-repeat center;
            }
            ul li:nth-of-type(5) a::after{
            background: url(http://www.w3cplus.com/demo/css3/CSS3Fullbackground/sbg5.jpg) no-repeat center;
            }
            /*任务四、给缩略图添加蒙板效果*/
            ul li 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);
            }
            /*任务五、鼠标悬浮时,修改缩略图蒙板透明度*/
            a:hover::before{
                  opacity:0;
            }
            /*任务六、点击综略图,切换背景图*/
            /*背景图从左向右出现*/
            #bg1:target{

            }
            /*背景图从下向上出现*/
            #bg2:target{

            }
            /*背景图由小到大出现*/
            #bg3:target{

            }
            
            /*背景图由大到小出现*/
            #bg4:target{

            }
            
            /*背景图旋转出现*/
            #bg5:target{

            }
            /*任务七、设置不显示的背景图层级*/
            /* Not Target */
            
            .bg:not(a:target){

            }
0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

晕晕晕晕晕

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号