css绘制植物效果

代码语言:html

所属分类:布局界面

代码描述:css绘制植物效果

代码标签: 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

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

        *:before,
        *:after {
            content: "";
            position: absolute;
        }

        *,
        *:before,
        *:after {
            box-sizing: inherit;
        }

        html,
        body {
            height: 100%;
            width: 100%;
            background: #dbf4d4;
        }

        .plants {
            height: 80vh;
            width: 80em;
            max-width: 80%;
            position: absolute;
            transform: translate(-50%, -50%);
            top: 50%;
            left: 50%;
            display: flex;
            flex-direction: row;
        }
@media only screen and (max-width: 48em) {
            .plants {
                flex-wrap: wrap;
                height: 100%;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0