一个div纯css布局实现mac电脑效果

代码语言:html

所属分类:布局界面

代码描述:一个div纯css布局实现mac电脑效果

代码标签: css 布局 实现 mac 电脑 效果

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


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

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

html, body {
  width: 100vw;
  height: 100vh;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  width: 1020px;
  height: 580px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  margin: auto;
  background: #fff;
}

#mbp {
  width: 1020px;
  height: 32px;
  top: 551px;
  position: relative;
  background: #e7e7e7 -webkit-gradient(linear, left top, right top, from(#5E6164), color-stop(1%, #C1C4C7), color-stop(3%, #82858A), color-stop(8%, #D1D2D7), color-stop(92%, #D1D2D7), color-stop(97%, #82858A), color-stop(99%, #C1C4C7), to(#5E6164));
  background: #e7e7e7 linear-gradient(to right, #5E6164 0%, #C1C4C7 1%, #82858A 3%, #D1D2D7 8%, #D1D2D7 92%, #82858A 97%, #C1C4C7 99%, #5E6164 100%);
  border-radius: 0 0 180px 180px / 0 0 14px 14px;
  border-bottom: 14px solid transparent;
  -webkit-border-image: -webkit-gradient(linear, left top, left bottom, color-stop(97.5%, #898A8F), to(#2E2D32));
  -webkit-border-image: linear-gradient(to bottom, #898A8F 97.5%, #2E2D32 100%);
       -o-border-image: linear-gradient(to bottom, #8.........完整代码请登录后点击上方下载按钮下载查看

网友评论0