css模拟实体开关效果

代码语言:html

所属分类:布局界面

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


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

<style>

* {
  box-sizing: border-box;
}

html,
body {
  background: #ccc;
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrap {
  align-content: center;
  -webkit-box-align: center;
          align-items: center;
  display: -webkit-box;
  display: flex;
  height: 100%;
  -webkit-box-pack: center;
          justify-content: center;
}

.panel {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.25), inset 4px 4px 8px rgba(255, 255, 255, 0.5), inset 2px 2px 2px rgba(177, 177, 177, 0.25), -4px -4px 16px rgba(255, 255, 255, 0.25), 1px 1px 1px rgba(0, 0, 0, 0.1), 4px 4px 2px rgba(0, 0, 0, 0.05), 6px 6px 3px rgba.........完整代码请登录后点击上方下载按钮下载查看

网友评论0