一个简单的界面-前端板块造梦空间论坛-技术交流-造梦空间论坛

一个简单的界面

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            max-width: 500px;
            min-width: 320px;
            font: normal 14px/1.5 "FiraCode NF";
            color: #000;
            margin: 0 auto;
            background-color: #ffffff;
            /* 隐藏水平滚动条 */
            overflow-x: hidden;
            /* webkit-tap-highlight-color:该特性是非标准的,请尽量不要在生产环境中使用它! */
            -webkit-tap-highlight-color: transparent;
        }
        
        .main {
            background-color: rgb(255, 255, 255);
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            align-items: stretch;
        }
        
        .title {
            width: 100%;
            height: 40px;
            line-height: 40px;
            background-color: rgb(255, 255, 255);
            display: flex;
            justify-content: space-between;
            flex-wrap: nowrap;
            color: #000;
        }
        
        h3 {
            text-align: left;
        }
        
        .vip {
            display: flex;
            width: 100%;
            height: 100px;
            /* background-color: aqua; */
            background: url(image/3.jpg);
            align-content: flex-start;
            flex-direction: column;
            /* margin-left: 20px; */
            color: #000;
        }
        
        hr {
            width: 90%;
            margin: auto;
            height: .1px;
            /* background-color: rgb(0, 0, 255); */
        }
        
        .vip-bot {
            display: flex;
            justify-content: space-between;
            text-align: center;
        }
        
        .vip-bot>button {
            width: 150px;
            height: 25px;
            color: rgb(194, 123, 23);
            border: none;
            background-color: rgb(231, 160, 62);
            border-radius: 50px;
        }
        
        li {
            list-style: none;
        }
        
        .jingXuan {
            width: 100%;
            background-color: rgb(255, 255, 255);
        }
        
        .jingXuan>ul,
        .teQuan>ul {
            width: 100%;
            background-color: rgb(255, 255, 255);
            display: flex;
            justify-content: center;
        }
        
        body {
            color: #ffffff;
        }
        
        h3 {
            color: #000000;
        }
        
        .jingXuan>ul>ol,
        .teQuan>ul>li {
            width: 170px;
            height: 200px;
            /* background-color: aqua; */
            background: url(https://gd-hbimg.huaban.com/f8c8a884482ecdcd53f4e8a98cf3621675af77351732a2-RN9iXY_fw240webp);
            float: left;
            border-radius: 5px;
            margin: 3px;
            position: relative;
            margin: 10px;
        }
        
        .jingXuan>ul>ol:nth-child(1) {
            background: url(image/1.jpg);
            background-size: 100% auto;
        }
        
        .jingXuan>ul>ol:nth-child(2) {
            background: url(image/2.jpg);
            background-size: 100% auto;
        }
        
        .jingXuan>ul>ol:nth-child(3) {
            background: url(image/3.jpg);
            background-size: 100% auto;
        }
        
        .teQuan>ul>li:nth-child(1) {
            background: url(image/1.jpg);
            background-size: 100% auto;
        }
        
        .teQuan>ul>li:nth-child(2) {
            background: url(image/2.jpg);
            background-size: 100% auto;
        }
        
        .teQuan>ul>li:nth-child(3) {
            background: url(image/3.jpg);
            background-size: 100% auto;
        }
        
        .jing-left {
            float: right;
            margin: 3px;
            text-align: center;
            background-color: red;
            width: 35px;
            border-radius: 3px;
            font-size: 10px;
        }
        
        .jing-tit {
            position: absolute;
            bottom: 36px;
            text-align: center;
            width: 100%;
        }
        
        .jing-ljlq {
            position: absolute;
            text-align: center;
            width: 100%;
            height: 35px;
            background-color: rgb(231, 161, 62);
            bottom: 0px;
            line-height: 35px;
            font-size: 12px;
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
        }
        
        .teQuan {
            width: 100%;
            background-color: rgb(255, 255, 255);
        }
        
        .teQuan>ul>li>h2,
        h4 {
            width: 100%;
            height: 20px;
            line-height: 100px;
            text-align: center;
        }
        
        .kthy {
            width: 100%;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .kthy>button {
            width: 450px;
            height: 35px;
            border: none;
            font-size: 15px;
            text-align: center;
            background-color: rgb(234, 38, 97);
            border-radius: 5px;
            color: #ffffff;
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="title">
            <div class="title-content">《</div>
            <div class="title-content">WebCat会员</div>
            <div class="title-content">---</div>
        </div>
        <div class="vip">
            <div>Linux</div>
            <div>性别:男</div>
            <hr align="right">
            <div class="vip-bot">
                <h6>有效期至2099--12-31</h6>
                <button>续费会员</button></div>
        </div>
        <div class="jingXuan">
            <h3>活动精选</h3>
            <ul>
                <ol>
                    <li class="jing-left">新春</li>
                    <li class="jing-tit">兔年限定福利</li>
                    <li class="jing-ljlq">立即领取</li>

                </ol>
                <ol>
                    <li class="jing-left">热门</li>
                    <li class="jing-tit">秒升VIP10</li>
                    <li class="jing-ljlq">立即领取</li>
                </ol>
                <ol>
                    <li class="jing-left">最新</li>
                    <li class="jing-tit">炫彩VIP名牌</li>
                    <li class="jing-ljlq">立即领取</li>
                </ol>
            </ul>
        </div>
        <div class="teQuan">
            <h3>会员特权</h3>
            <ul>
                <li>
                    <h2>会员专享特权</h2>
                    <h4>会员炫彩名牌</h4>
                </li>
                <li>
                    <h2>专属礼物</h2>
                    <h4>转情达意</h4>
                </li>
                <li>
                    <h2>下载特权</h2>
                    <h4>无限次数</h4>
                </li>
            </ul>
        </div>
        <div class="cztx">
            <h3>成长体系</h3>
        </div>
        <div class="qqph">
            <h3>全球排行</h3>
        </div>
        <div class="kthy"><button>开通会员</button></div>
    </div>
</body>

</html>

 

请登录后发表评论

    没有回复内容

© 造梦空间论坛