1209 After-school essay

1. Animated

    @keyframes创建动画;

    @keyframes myfirst{
        from{background:red;}
        to{background:yellow;}
    }

    animation: Animation name 2s; animate.css extension files;

2. @ media selector

    head head Add

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    Otherwise, mobile devices will be 980px width;

    @media screen and (max-width:300px){ }

    End phones do page : Use vw units and units of rem

    html font size 100/750 * 100; here take the 100 because the PC browser minimum font 12px;

  Pixel design / 100rem

Guess you like

Origin www.cnblogs.com/ltl11230/p/12036074.html