css实现波纹边框邮票边框效果
代码语言:html
所属分类:布局界面
代码描述:css实现波纹边框邮票边框效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: Verdana, Geneva, Tahoma, sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f4f4f4; padding: 20px; } .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } .container .card { position: relative; width: 280px; height: 350px; margin: 30px; } .container .card:nth-of-type(2) { transform: rotate(5deg); } .container .card .image { position: relative; width: 100%; height: 100%; background-size: cover; transform: translate(10px, 10px); } .container .card:before { content: ""; position: absolute; top: 0; left: 0; width: 255px; height: 325px; border: 25px solid #fff; z-index: 1; background: linear-gradient(145deg, #ffffff, #e6e6e6); box-shadow: 7px 7px 21px #bdbdbd, -7px -7px 21px #ffffff; background: transparent; } .container .card:nth-of-type(1)::before { filter: url(#wavy1); } .container .card:nth-of-type(2)::before { filter: url(#wavy2); } .container .card:nth-of-type(3)::before { filter: url(#wavy3); } .image1 { background-image: url("http://repo.bfw.wiki/bfwrepo/image/5d6539613d08b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_600,h_600,/quality,q_90"); } .image2 { background-image: url("http://repo.bfw.wiki/bfwrepo/image/5d65ea7d8bc8b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_600,h_600,/quality,q_90"); } .image3 { background-image: url("http://repo.bfw.wiki/bfwrepo/image/5d6539613d08b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_600,h_600,/quality,q_90"); } svg { width: 0; height: 0; } .container .card .info { position: absolute.........完整代码请登录后点击上方下载按钮下载查看
网友评论0