小编Kum*_*esh的帖子

css3动画保证金自动无效

我想将"letsgo"div从左边距100%移动到自动边距.即它停在左边距和右边距相等的点.但我无法弄清楚.请帮我.

我的守则如下:

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Do IT...</title>
        <meta charset="UTF-8">
        <style>
            #letsgo{
                height: 600px;
                width: 500px;
                border: 2px solid #64BBF0;
                border-radius: 2px;
                margin: auto;
                position: relative;
                animation-fill-mode: forwards;
                box-shadow: 5px 5px 2px #64BBF0;
                animation-name: miku;
                animation-duration: 1s;



            }
            @keyframes miku{
                0%{
                    margin-left: 100%;
                }

                100%{
                    margin: auto;

                }


            }
            #doit{
                height: 100px;
                width: 100px;
                border-radius: 50%;
                background: yellow;
                position: absolute;
                top: 250px;
                left: 200px;
            }

            .child{
                height: 25px;
                width:25px;
                border-radius: 50%;
                background: red;
                position: absolute;
                top: 287.5px;
                left:237.5px;                               
            } …
Run Code Online (Sandbox Code Playgroud)

html5 css3

4
推荐指数
2
解决办法
5343
查看次数

标签 统计

css3 ×1

html5 ×1