css布局实现套餐卡片选择效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现套餐卡片选择效果代码

代码标签: 套餐 卡片 选择 效果

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

<!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>推荐套餐</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
            list-style: none;
            text-decoration: none;
            color: inherit;
            font-weight: 400;
            font-family: "微软雅黑";
            box-sizing: border-box;
            font-style: normal;
            outline: 0;
            -webkit-tap-highlight-color: transparent
        }
        body {
            width: 100%;
            overflow-x: hidden
        }
        img {
            vertical-align: middle;
            max-width: 100%
        }
        .clearfix:after,.clearfix:before {
            display: table;
            line-height: 0;
            content: "";
            clear: both;
        }
        .w1200 {
            margin: 0 auto;
            width: 1200px;
        }
        /* 背景标题 */
        .recommend-package {
            background: #f9f9f9;
            padding-bottom: 100px;
            height: auto;
            overflow: hidden
        }
        .recommend-package .title {
            position: relative;
            text-align: center;
            height: 172px;
            line-height: 182px;
            font-size: 32px
        }
        /* 列表 */
        .recommend-item {
            position: relative;
            float: left;
            background: #fff;
            transition: transform .3s ease;
            margin-left: -1px;
            height: 445px;
            width: 300px
        }
        .recommend-item .title {
            height: 80px;
            line-height: 80px;
            background: #e4e4e4;
            font-size: 22px;
            color: #333;
            text-align: center
        }
        .recommend-item .box {
            padding: 20px 26px 0 26px
        }
        .recommend-item .desc {
            height: 75px;
            line-height: 1.8em;
            font-size: 14px;
            color: #666
        }
        .recommend-item .config {
            padding-top: 12px;
            font-size: 28px;
            height: auto;
            overflow: hidden;
        }
        .recommend-item .config-unit {
            font-size: 16px
        }
        .recommend-item .config-item {
            float: left;
            text-align: center;
            color: #333;
            width: 33.3%;
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0