单个div+css布局实现多个化学容器效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css布局实现多个化学容器效果代码

代码标签: 实现 多个 化学 容器 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <style>
        body {
          min-height: 300px;
          height: 100vh;
          position: relative;
          background-color: #639;
        }
        div {
          position: absolute;
          left: 50%;
          top: 50%;
        }
        div:before,
        div:after {
          display: block;
          content: '';
          position: absolute;
        }
        @media (max-width: 400px) {
          div:not(.no-scale) {
            transform: scale(0.8);
          }
        }
        #toxic {
          width: 24em;
          height: 15em;
          margin-left: -12em;
          margin-top: -7.5em;
          background-repeat: no-repeat;
          background-image: linear-gradient(white, white), linear-gradient(white, white), linear-gradient(175deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 31%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0) 71%), linear-gradient(to right, white 2px, #191970 2px, #191970 7%, rgba(0,0,0,0) 7.1%), linear-gradient(to left, white 2px, #191970 2px, #191970 7%, rgba(0,0,0,0) 7.1%), linear-gradient(95deg, rgba(255,255,255,0.3) 38%, rgba(255,255,255,0) 39%), linear-gradient(-95deg, rgba(255,255,255,0.3) 38%, rgba(255,255,255,0) 39%), repeating-linear-gradient(to right, white, white 2px, rgba(255,255,255,0) 2px, rgba(255,255,255,0) 4px), linear-gradient(white, white), linear-gradient(white, white), linear-gradient(white, white), linear-gradient(white, white), linear-gradient(white, white), repeating-linear-gradient(to right, white, white 2px, rgba(255,255,255,0) 2px, rgba(255,255,255,0) 4px), linear-gradient(white, white), repeating-linear-gradient(to right, white, white 2px, rgba(255,255,255,0) 2px, rgba(255,255,255,0) 4px), linear-gradient(white, white), linear-gradient(50deg, rgba(255,255,255,0) 34%, white 35%), linear-gradient(-50deg, rgba(255,255,255,0) 34%, white 35%), radial-gradient(circle at 50% 0, rgba(255,255,255,0) 54%, white 55%, white 57%, rgba(255,255,255,0) 58%), linear-gradient(white, white), linear-gradient(white, white), linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), linear-gradient(to right, white 2px, #191970 2px, #1919.........完整代码请登录后点击上方下载按钮下载查看

网友评论0