div+css实现图片扇形拼凑圆形效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现图片扇形拼凑圆形效果代码

代码标签: div css 图片 扇形 拼凑 圆形

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        * {
        	padding: 0;
        	margin: 0;
        	box-sizing: border-box;
        }
        body {
        	display: flex;
        	flex-wrap: wrap;
            justify-content: space-around;
            align-items: center;
            min-height: 100vh;
            background-color: coral;	
        }
        .grid {
        	display: grid;
        	grid: auto / 1fr 1fr;
        	gap: 5px;
        }
        
        
        /* inner pic outer border */
        .shape-outer {
            display: flex;
            flex-shrink: 0;
            height: calc(150px + 8vw);
            width: calc(150px + 8vw);
            background-image: linear-gradient(to bottom right, #ff3cac, #b70067, #460028);
        }
        .shape-inner {	
            height: calc(130px + 8vw);
            width: calc(130px + 8vw);
            margin: auto;
        }
        .shape-inner-one {
            background: url(//repo.bfw.wiki/bfwrepo/image/62bb8b7de9339.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90) no-repeat center;
            background-size: cover;
        }
        .shape-inner-two {
            background: url(//repo.bfw.wiki/bfwrepo/image/62bb8b9308b60.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90) no-repeat center;
            background-size: cover;
        }
        .shape-inner-three {
            background: url(//repo.bfw.wiki/bfwrepo/image/62c3707145c64.png?x-oss-process=i.........完整代码请登录后点击上方下载按钮下载查看

网友评论0