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: -8px; width: 8px; height: 0; border: 4px solid transparent; border-top-color: #555455; border-bottom-width: 0; content: ""; } .fridge:before { left: 14px; } .fridge:after { right: 14px; box-shadow: 0 -405px 0 1px #555455; } .fridge .freezer, .fridge .body { position: relative; background-color: #d7e4e7; background-image: linear-gradient(to right, #96a4aa 25%, #b3c5cd 15%); transform-origin: right; t.........完整代码请登录后点击上方下载按钮下载查看
网友评论0