css布局是吸纳商品服务tab选项卡切换效果代码

代码语言:html

所属分类:选项卡

代码描述:css布局是吸纳商品服务tab选项卡切换效果代码

代码标签: 吸纳 商品 服务 tab 选项 切换 效果

下面为部分代码预览,完整代码请点击下载或在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;
            background: #151827;
        }
        img {
            vertical-align: middle;
            max-width: 100%
        }
        .clearfix:after,.clearfix:before {
            display: table;
            line-height: 0;
            content: ""
        }
        /* 通用类 */
        .left {
            float: left
        }
        .mgt20 {
            margin-top: 20px
        }
        .mgt50 {
            margin-top: 50px
        }
        .w1200 {
            margin: 0 auto;
            width: 1200px;
        }
        /* 背景标题 */
        .product {
            background: url(//repo.bfw.wiki/bfwrepo/image/60dffe2631ade.png) no-repeat top center;
            background-size: 100%;
            height: 846px;
            width: 100%;
        }
        .product .title {
            color: #fff;
            height: 148px;
            line-height: 148px;
            font-size: 32px;
            position: relative;
            text-align: center
        }
        /* 左侧分类 */
        .product-left {
            width: 165px
        }
        .prod-item {
            width: 165px;
            height: 65px;
            line-height: 65px;
            border-top: 1px solid #3c3d40;
            margin-bottom: 1px;
            background: #2e3035 no-repeat 30px center;
            color: #fff;
            font-size: 16px;
            text-align: center;
            text-indent: 2em;
            cursor: pointer
        }
        .prod-item.active,.prod-item:hover {
            background-color: #27282c;
            color: #0af
        }
     .........完整代码请登录后点击上方下载按钮下载查看

网友评论0