css布局实现手机端分享邀请注册送礼送红包活动页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现手机端分享邀请注册送礼送红包活动页面效果代码

代码标签: 手机 分享 邀请 注册 送礼 红包 活动 页面 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>app活动</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
            list-style: none;
            text-decoration: none;
            color: inherit;
            font-weight: normal;
            font-family: "微软雅黑";
            box-sizing: border-box;
            font-style: normal;
            outline: none;
        }
        body {
            width: 100%;
            overflow-x: hidden;
            background: url(//repo.bfw.wiki/bfwrepo/images/huodong/bg.jpg) top center no-repeat #2575fc;
            background-size: 100%;
        }
        img {
            vertical-align: middle;
            max-width: 100%;
        }
        a:hover,a:active,a:visited,a:link,a:focus {
            -webkit-tap-highlight-color: transparent;
            outline: none;
            text-decoration: none;
        }
        .container {
            width: 100%;
            padding: .3rem .35rem .45rem .35rem;
        }
        .logo-top {
            width: 100%;
            padding-bottom: .90rem;
        }
        .logo-top img {
            width: 1.41rem;
            
        }
        .slogan {
            width: 100%;
            padding-bottom: 1.3rem;
            text-align: center;
        }
        .slogan img {
            display: inline-block;
            width: 5.2rem;
            height: 1.47rem;
            margin-bottom: .6rem;
        }
        .slogan a {
            display: inline-block;
            width: 2.95rem;
            height: .52rem;
            line-height: .52rem;
            background: #ffcf59;
            color: #6617cd;
            font-size: .26rem;
            border-radius: .52rem;
            letter-spacing: .01rem;
        }
        /*邀请码*/
        .invite {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 6.82rem;
            height: 3.37rem;
            background: url(//repo.bfw.wiki/bfwrepo/images/huodong/yaoqingma-bg.png) center center no-repeat;
            background-size: 6.82rem 3.37rem;
            padding: 0 1.1rem 0 .7rem;
            margin: 0 auto;
        }
        .invite .qrcode img {
            width: 1.77rem;
            height: 1.77rem;
        }
        .invite .copy-code {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .invite .copy-code p {
            font-size: .24rem;
            color: #b587f2;
        }
        .invite .copy-code span {
            display: inline-block;
            margin: .25rem 0;
            font-size: .4rem;
            color: #6617cd;
            font-weight: bold;
        }
        .invite .copy-code a {
            display: inline-block;
            background: #6814cc;
            color: #FFFFFF;
            font-size: .24rem;
            width: 1.7rem;
            height: .40rem;
            line-height: .4rem;
            border-radius: .4rem;
            text-align: center;
            letter-spacing: .01rem;
        }
        .activity {
            width: 6.82rem;
            height: 4.62rem;
            background: url(//repo.bfw.wiki/bfwrepo/images/huodong/huodongxiangqing-bg.png) center center no-repeat;
            background-size: 6.82rem 4.62rem;
            margin: 0 auto;
            padding: 1.4rem .4rem 0rem .4rem;
        }
        .activity ul {
            overflow-y: auto;
            width: 100%;
            height: 2.8rem;
        }
        .activity ul::-webkit-scrollbar {
            width: 0;
        }
        .activity ul li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: .32rem;
        }
        .activity ul li:last-child {
            padding-bottom: 0;
        }
        .activity ul li img {
            width: .63rem;
            height: .63rem;
            flex-shrink: 0;
            margin-right: .15rem;
        }
        .activity ul li .info {
            display: flex;
            flex-direction: column;
            text-align: left;
            width: 100%;
        }.........完整代码请登录后点击上方下载按钮下载查看

网友评论0