css布局实现一个冰箱开关门效果
代码语言:html
所属分类:布局界面
代码描述:css布局实现一个冰箱开关门效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
body {
font-family: sans-serif;
background-color: #8eb7cb;
color: #fff;
}
a {
color: #085699;
text-decoration: none;
}
p,
h1 {
display: block;
text-align: center;
margin-bottom: 5px;
}
.fridge {
position: relative;
width: 180px;
margin: 30px auto 10px;
height: auto;
border: 4px solid #555455;
background: #fff;
display: block;
}
.fridge:before, .fridge:after {
position: absolute;
bottom: .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0