css布局实现红包摇一摇拆开显示金额效果代码
代码语言:html
所属分类:红包
代码描述:css布局实现红包摇一摇拆开显示金额效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="format-detection" content="telephone=no"> <title>摇红包</title> <style> body { font-family: 'Microsoft YaHei'; } button { border: none; } /*红包*/ .red { width: 100%; height: 60vw; margin: 0 auto; position: relative; } .red img { width: 56%; background-position: center; background-repeat: no-repeat; top: 5%; left: 22%; position: absolute; border-top-left-radius: 10px; border-top-right-radius: 10px; } button:focus { outline: none; } .red>button { position: absolute; top: 32%; left: 40%; font-size: 5vw; width: 20vw; height: 20vw; border-radius: 100%; background: #fdc339; color: #fff; } .red-jg { display: none; position: absolute; top: 32%; left: 0; width: 100%; text-align: center; } .red-jg .jianglittitle { font-size: 18px; color: #ffc000; line-height: 40px; } .red-jg .jiangli { color: #fff; } /*按钮*/ .t-btn { padding: 10px; } .t-btn>button { width: 100%; background: #ff4242; border-radius: 5px; color: #fff; line-height: 40px; font-size: 14px; } </style> <link type="text/css" rel="style.........完整代码请登录后点击上方下载按钮下载查看
网友评论0