求老师点评

求老师点评

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style type="text/css">
        div.flag{
            height:390px;
            width:520px;
            background-color: red;
            display: block;
        }
        div.corner{
            display:block;
            position: relative;
            top: 70px;
            left:50px;
            height:0px;
            width:0px;
            border-right: 35px solid transparent;
            border-left: 35px solid transparent;
            border-top: 26px solid yellow;
        }
        div.corner::before{
            content: "";
            position: absolute;
            top: -27px;
            left: -37.5px;
            border-right: 35px solid transparent;
            border-left: 35px solid transparent;
            border-top: 26px solid yellow;
            -webkit-transform: rotate(72deg);
               -moz-transform: rotate(72deg);
                -ms-transform: rotate(72deg);
                 -o-transform: rotate(72deg);
                    transform: rotate(72deg);
        }
        div.corner::after{
            content: "";
            position: absolute;
            top: -27px;
            left: -34.5px;
            border-right: 35px solid transparent;
            border-left: 35px solid transparent;
            border-top: 26px solid yellow;
            -webkit-transform: rotate(-72deg);
               -moz-transform: rotate(-72deg);
                -ms-transform: rotate(-72deg);
                 -o-transform: rotate(-72deg);
                    transform: rotate(-72deg);
        }

        div.small1{
            -webkit-transform: translate(70px,-66px) rotate(-45deg) scale(0.4);
               -moz-transform: translate(70px,-66px) rotate(-45deg) scale(0.4);
                -ms-transform: translate(70px,-66px) rotate(-45deg) scale(0.4);
                 -o-transform: translate(70px,-66px) rotate(-45deg) scale(0.4);
                    transform: translate(70px,-66px) rotate(-45deg) scale(0.4);
        }
        div.small2{
            -webkit-transform: translate(100px,-63px) rotate(-15deg) scale(0.4);
               -moz-transform: translate(100px,-63px) rotate(-15deg) scale(0.4);
                -ms-transform: translate(100px,-63px) rotate(-15deg) scale(0.4);
                 -o-transform: translate(100px,-63px) rotate(-15deg) scale(0.4);
                    transform: translate(100px,-63px) rotate(-15deg) scale(0.4);
        }
        div.small3{
            -webkit-transform: translate(100px,-53px) rotate(5deg) scale(0.4);
               -moz-transform: translate(100px,-53px) rotate(5deg) scale(0.4);
                -ms-transform: translate(100px,-53px) rotate(5deg) scale(0.4);
                 -o-transform: translate(100px,-53px) rotate(5deg) scale(0.4);
                    transform: translate(100px,-53px) rotate(5deg) scale(0.4);
        }
        div.small4{
            -webkit-transform: translate(70px,-52px) rotate(-45deg) scale(0.4);
               -moz-transform: translate(70px,-52px) rotate(-45deg) scale(0.4);
                -ms-transform: translate(70px,-52px) rotate(-45deg) scale(0.4);
                 -o-transform: translate(70px,-52px) rotate(-45deg) scale(0.4);
                    transform: translate(70px,-52px) rotate(-45deg) scale(0.4);
        }
    </style>
</head>
<body>
    <div>
        <div class="corner big"></div>
        <div class="corner small1"></div>
        <div class="corner small2"></div>
        <div class="corner small3"></div>
        <div class="corner small4"></div>
    </div>
</body>
</html>


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

你只定义了五个星星的div,红旗的div呢,div.flag是从哪儿来的。

少一个div,添加在如下位置:

http://img1.sycdn.imooc.com/climg//58cd30d40001adc911100538.jpg

  • 蒸汽奶爸__ 提问者 #1
    额 我这里的旗帜的div给了flag这个类
    2017-03-19 18:42:51
  • Miss路 回复 提问者 蒸汽奶爸__ #2
    是的,所以说你少了这个div
    2017-03-20 09:58:13
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师