单个div+css布局实现一个笔记本电脑效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css布局实现一个笔记本电脑效果代码

代码标签: 实现 一个 笔记本 电脑 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <style>
        body {
          width: 100%;
          height: 100vh;
          display: grid;
          place-items: center;
          background: seagreen;
        }
        body div {
          width: 100vmin;
          height: 100vmin;
          position: relative;
        }
        body div::before {
          content: "";
          position: absolute;
          width: 60%;
          height: 40%;
          top: 30%;
          left: 20%;
          background: linear-gradient(#c2c2c2, #c2c2c2) 75% 25%/20% 1%, linear-gradient(#c2c2c2, #c2c2c2) 85.5% 30%/30% 1%, linear-gradient(#c2c2c2, #c2c2c2) 70.5% 36%/15% 1%, linear-gradient(#c2c2c2, #c2c2c2) 80% 42%/25% 1%, linear-gradient(#393870, #393870) 62% 14%/13% 4%, linear-gradient(to right, #2b2b55 10%, transparent 10%) 90% 50%/45% 80%, linear-gradient(#2b2b55 8%, #393870 8%) 90% 50%/45% 80%, linear-gradient(whitesmoke, whitesmoke) 20% 58%/4% 5%, linear-gr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0