div+css绘制埃菲尔铁塔效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css绘制埃菲尔铁塔效果代码

代码标签: div css 绘制 埃菲尔 铁塔

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background: #68e3ff;
}

.canvas {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ground {
    background: #d2d2d2;
    height: 100px;
    display: flex;
    justify-content: space-between;
    column-gap: 240px;
    z-index: 1;
}

.ground:before, .ground:after {
    background: green;
    flex: 1;
    content: "";
    border-radius: 0 0 100px 0 / 0 0 100px 0;
}

.ground:after {
    transform: scale(-1, 1);
}

.non_ground {
    flex: 4;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    column-gap: 20px;
    z-index: 2;
}

.tower {
    display: flex;
    justify-content: flex-start;
    flex-direction: column-reverse;
    align-items: center;
    width: 400px;
    height: 100%;
    /*border: 1px solid black;*/
    --color: #ebf5ff;
    --color_dark: #ffffff;
}
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0