css实现墙上物理开关按键面板点击效果代码
代码语言:html
所属分类:其他
代码描述:css实现墙上物理开关按键面板点击效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: 0;
}
body {
height: 100vh;
margin: 0;
display: grid;
place-items: center;
font-family: sans-serif;
font-size: 1.8rem;
background: #222;
}
.plate {
background: #F0F0F0;
width: 300px;
height: 400px;
border-radius: 10px;
box-shadow: inset 0.2em 0.2em 0.2em 0 rgba(255, 255, 255, 0.5), inset -0.2em -0.2em 0.2em 0 rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.plate .hole {
b.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0