zoukankan      html  css  js  c++  java
  • div元素呈圆环排列

    <style>
    .path {
    
    width: 300px;
    
    height: 300px;
    
    padding: 20px;
    
    border-radius: 50%;
    
    background: rgba(79, 11, 152, 0.5);;
    
    margin: 50px auto;
    
    }
    
    .avatar {
    
    width: 50px;
    
    margin: 0 auto;
    
    border-radius: 50%;
    
    overflow: hidden;
    
    display: block;
    
    
    transform-origin:50% 150px;
    
        position: absolute;
    }
    
    
    </style>
    
    
    
    
        <div class="avatar" style="transform: rotate(0deg);">
            <img  src="https://www.baidu.com/img/bd_logo1.png" width='50' height='50' style='transform: rotate(0deg);'/>
        </div>
        <div class="avatar" style="transform: rotate(72deg);">
            <img  src="https://www.baidu.com/img/bd_logo1.png" width='50' height='50' style='transform: rotate(-72deg);'/>
        </div>
        <div class="avatar" style="transform: rotate(144deg);">
            <img  src="https://www.baidu.com/img/bd_logo1.png" width='50' height='50' style='transform: rotate(-144deg);'/>
        </div>
        <div class="avatar" style="transform: rotate(216deg);">
            <img  src="https://www.baidu.com/img/bd_logo1.png" width='50' height='50' style='transform: rotate(-216deg);'/>
        </div>
        <div class="avatar" style="transform: rotate(288deg);">
            <img  src="https://www.baidu.com/img/bd_logo1.png" width='50' height='50' style='transform: rotate(-288deg);'/>
        </div>

  • 相关阅读:
    函数柯里化
    常用正则
    校验table行内的form编辑
    前端代码 读取excel表格数据
    cocos2d-x 帧动画学习
    Linux 下vim配置
    Android开发笔记 二
    cocos2d-x CCDictionary类学习
    Android开发笔记
    Cococs2d-x移植到Window下的问题
  • 原文地址:https://www.cnblogs.com/hellowzd/p/5891455.html
Copyright © 2011-2022 走看看