div+css布局实现钱包夹效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现钱包夹效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ margin: 0; padding: 0; background: #fae899; } .box{ position: relative; display: block; margin: auto; margin-top: 8%; width: 600px; height: 420px; background: none; } .outside, .money, .div.money:nth-child(2), div.money:nth-child(3), .inside, .inside-line, .part-1, .part-2{ position: absolute; } .outside{ width: 50%; height: 50%; left: 25%; top: 35%; background: #C1793E; border-radius: 10px; z-index: 1; } .money, .div.money:nth-child(2), .div.money:nth-child(3){ width: 50%; height: 30%; background: #BAF1B7; border-top: 15px solid #5E9E61; border-right: 20px solid #5E9E61; border-radius: 10px; transform: rotate(-15deg); } .money{ left: 35%; top: -5%; z-index: 1; } div.money:nth-child(2){ left: 25%; top: -8%; z-index: 2; } div.money:nth-child(3){ left: 15%; top: -11%; z-index: 3; } .inside{ width: 100%; height: 100%; left: 0%; top: 0%; background: #C1793E; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0