• html 中画半圆的方法


    html 中画半圆的方法

    <style>
    
            div{
                display: inline-block;
    
            }
            .red{
                background-color: red;
            }
            .green{
                background-color: green;
            }
            #one{
                transform: rotate(100deg);
    
            }
            #two{
    
                transform: rotate(100deg);
    
            }
            .left-circle{
                 100px;
                height: 200px;
                border-radius: 100px 0 0 100px;
                transform-origin: 100px 100px;
            }
            .right-circle{
                 100px;
                height: 200px;
                border-radius: 0 100px 100px 0;
                margin-left: -5px;
                transform-origin: 0 100px;
    
            }
            /*.up-circle{*/
            /*    height: 100px;*/
            /*     200px;*/
            /*    border-radius: 100px 100px 0 0;*/
            /*    transform: rotateZ(180deg);*/
            /*}*/
            /*.down-circle{*/
            /*     height: 100px;*/
            /*     200px;*/
            /*    border-radius: 0 0 100px 100px;*/
            /*}*/
    
        </style>
    
    
    
    <body>
    
    <div id = 'app' >
        <div class="left-circle red" :style='one' id ='d1'>
        </div>
        <div class="right-circle green" :style="two"  >
        </div>
    </div>
    </body>
    
    
    <script src="js/vue.js"></script>
    <script>
        let count=0;
    
        let app = new Vue({
            el: '#app',
            data: {
                // transform:rotate(190deg);
                one: {transform: 'rotate(' + count + 'deg)'},
                two: {transform: 'rotate(' + count + 'deg)'},
    
            },
        });
        setInterval(function(){
    
                        count=count+20;
                        app.one.transform = 'rotate('+count+'deg)';
                        app.two.transform = 'rotate('+count+'deg)';
                        console.log(count);
                        }, 1);
    
    
    </script>
    
  • 相关阅读:
    Linux基础命令---sudo
    Linux基础命令---yes
    Linux基础命令---shutdown
    Divide Two Integers
    java 判断两个数是否异号
    字节顺序的详细解释(转)
    java无符号移位(>>>)和有符号移位(>>)
    java 参数化类型
    c++事件内核对象(event)进程间激活(转)
    windows多线程编程(一)(转)
  • 原文地址:https://www.cnblogs.com/cheng825/p/11839925.html
Copyright © 2020-2023  润新知