jquery实现响应式多个商品套餐参数对比选择效果代码

代码语言:html

所属分类:布局界面

代码描述:jquery实现响应式多个商品套餐参数对比选择效果代码

代码标签: 多个 商品 套餐 参数 对比 选择 效果

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

<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
    <style>
        body, html {
            font-size: 100%;
            padding: 0;
            margin: 0;
        }

        /* Reset */
        *,
        *:after,
        *:before {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
        .clearfix:before,
        .clearfix:after {
            content: " ";
            display: table;
        }

        .clearfix:after {
            clear: both;
        }

        body {
            background: #494A5F;
            color: #D5D6E2;
            font-weight: 500;
            font-size: 1.05em;
            font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
        }
        a {
            color: #2fa0ec;
            text-decoration: none;
            outline: none;
        }
        a:hover,a:focus {
            color: #74777b;
        }
        /* --------------------------------

Primary style

-------------------------------- */
        *, *::after, *::before {
            box-sizing: border-box;
        }

        html {
            font-size: 62.5%;
        }

        body {
            font-size: 1.6rem;
            font-family: "Source Sans Pro", sans-serif;
            color: #404042;
            background-color: #ffffff;
        }

        a {
            color: #9dc997;
            text-decoration: none;
        }

        img {
            max-width: 100%;
        }

        h1 {
            font-size: 2.2rem;
            text-align: center;
            padding: 4em 5%;
        }
@media only screen and (min-width: 1170px) {
            h1 {
                font-size: 4rem;
                font-weight: 300;
                padding: 3em 5%;
            }
        }

        /* --------------------------------

Main Components

-------------------------------- */
        .cd-products-comparison-table {
            margin-bottom: 6em;
        }
        .cd-products-comparison-table::after {
            /* never visible - this is used in jQuery to check the current MQ */
            display: none;
            content: 'mobile';
        }
        .cd-products-comparison-table header {
            padding: 0 5% 25px;
        }
        .cd-products-comparison-table header::after {
            clear: both;
            content: "";
            display: table;
        }
        .cd-products-comparison-table h2 {
            float: left;
            font-weight: bold;
        }
        .cd-products-comparison-table .actions {
            float: right;
        }
        .cd-products-comparison-table .reset, .cd-products-comparison-table .filter {
            font-size: 1.4rem;
        }
        .cd-products-comparison-table .reset {
            color: #404042;
            text-decoration: underline;
        }
        .cd-products-comparison-table .filter {
            padding: .6em 1.5em;
            color: #ffffff;
            background-color: #cccccc;
            border-radius: 3px;
            margin-left: 1em;
            cursor: not-allowed;
            -webkit-transition: background-color 0.3s;
            -moz-transition: background-color 0.3s;
            transition: background-color 0.3s;
        }
        .cd-products-comparison-table .filter.active {
            cursor: pointer;
            background-color: #9dc997;
        }
        .no-touch .cd-products-comparison-table .filter.active:hover {
            background-color: #a7cea1;
        }
@media only screen and (min-width: 1170px) {
            .cd-products-comparison-table {
                margin-bottom: 8em;
            }
            .cd-products-comparison-table::after {
                /* never visible - this is used in jQuery to check the current MQ */
                content: 'desktop';
            }
            .cd-products-comparison-table header {
                padding: 0 5% 40px;
            }
            .cd-products-comparison-table h2 {
                font-size: 2.4rem;
            }
            .cd-products-comparison-table .reset, .cd-products-comparison-table .filter {
                font-size: 1.6rem;
            }
            .cd-products-comparison-table .filter {
                padding: .6em 2em;
                margin-left: 1.6em;
            }
        }

        .cd-products-table {
            position: relative;
            overflow: hidden;
        }

        .cd-products-ta.........完整代码请登录后点击上方下载按钮下载查看

网友评论0