css布局手机端移动端投票评选活动页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局手机端移动端投票评选活动页面效果代码

代码标签: 移动 投票 评选活动 页面 效果

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
    <title>投票</title>
    <script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
    <script type="text/javascript">
        bready(function() {
            $(".votebtn").click(function() {
                use(["mdialog", "mdialog"], function() {
                    new TipBox({
                        type: 'success', str: '投票成功', hasBtn: true
                    });

                });
            });

        });
    </script>
    <style>
        body {
            padding: 0;
            margin: 0;
            background: rgb(240,242,245);
        }
        .header {
            color: white;
            line-height: 30vh;
            text-align: center;
            font-size: 28px;
            height: 30vh;
            width: 100%;
            background: url(//repo.bfw.wiki/bfwrepo/image/60dd75673abe6.png) no-repeat;
            background-size: cover;
        }

        .summary {
            border-radius: 5px;
            width: 90vw;
            margin: 20px auto;
            background: rgb(43,144,243);
            color: white;
            box-shadow: 0 15px 30px #e5e5e5;

        }
        .nums {
            font-weight: bold;
        }
        .summary ul {
            display: flex;
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .summary ul li {
            padding: 20px 0;
            width: 33.33%;
            text-align: center;;
        }
        .summary ul li p {
            margin: 0;
            padding: 0;
        }
        .lefttime {
            color: rgb(43,144,243);
            height: 30px;
            text-align: center;
            line-height: 30px;
            background: rgb(245,245,245);
        }
        .votesearch {
            width: 90vw;
            height: 50px;
            margin: 20px auto;
            display: flex;
            box-shadow: 0 15px 30px #e5e5e5;
            overflow: hidden;
        }

        .votesearch input {
            padding: 10px;
            outline: none;
            border: none;
            height: 30px;
            width: 80%;
            background: white;
        }
        .votesearch button {
            outline: none;
            border: none;
            padding: 10px;
            outline: none;
            border: none;
            height: 50px;
            width: 20%;
            background: rgb(43,144,243);
            color: white;
        }
        .voteinfo {
            border-radius: 5px;
            width: 90vw;
            margin: 20px auto;
            background: rgb(255,255,255);
            color: rgb(126,126,126);
            box-shadow: 0 15px 30px #e5e5e5;


        }
        .voteinfo ul {
            list-style: none;
            padding: 10px 0 10px 0;
            margin: 0;
        }
        .voteinfo ul li {
            height: 30px;
            padding: 0 20px;
            line-height: 30px;
        }
        .voteitem {

            width: 90vw;
            margin: 0 auto;

        }
        .voteitem ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .voteitem ul li {
            width: 50%;
            text-align: center;
            margin: 0;
            padding: 0;
        }
        .voteitem .candidate {
            box-sizing: border-box;

            padding: 10px;
            border-radius: 5px;
            background: white;
            color: rgb(126,126,126);
            box-shadow: 0 15px 30px #e5e5e5;
            position: relative;
        }
        .voteitem li:nth-child(odd) .candidate {
            margin: 0 10px 10px 0;

        }
        .voteitem li:nth-child(even) .candidate {

            margin: 0 0px 10px 10px;
        }
        .candidate img {
            width: 100%;

        }
        .voteitem .sortnum {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 50px;
            height: 30px;
            background: black;
            opacity: 0.4;
            color: white;
            line-height: 30px;
        }

        .voteitem .votebtn {

            outline: none;
            border: none;
            .........完整代码请登录后点击上方下载按钮下载查看

网友评论0