css布局实现一台笔记本电脑效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一台笔记本电脑效果代码

代码标签: 一台 笔记本 电脑 效果

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

<html>
<head>
    <style>
        * html .clearfix {
            zoom: 1;
        }

        /* IE6 */
        *:first-child + html .clearfix {
            zoom: 1;
        }

        /* IE7 */
        .clearfix:before,
        .clearfix:after {
            content: "";
            display: table;
        }

        .clearfix:after {
            clear: both;
        }

        .clearfix {
            zoom: 1;
            /* For IE 6/7 (trigger hasLayout) */
        }

        * {
            margin: 0;
            padding: 0;
            border: 0;
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
        }

        a, a:hover, a:focus, a:active {
            text-decoration: none !important;
            outline: none;
        }

        .npd {
            padding: 0;
        }

        ul, li {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        a:hover {
            opacity: 0.7;
            color: white;
        }

        body {
            font-size: 14px;
            color: black;
        }

        .clear {
            clear: both;
        }

        img {
            max-width: 100%;
        }

        h1, h2, h3, h4 {
            padding: 0;
            margin: 0;
        }

        .wrap {
            width: 100%;
            height: 100vh;
            position: relative;
            background-color: #22262b;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .comp {
            width: 100%;
            height: 194px;
            text-align: center;
        }
        .comp .monitor {
            width: 275px;
            height: 181px;
            display: block;
            margin: 0 auto;
            border-radius: 10px 10px 0px 0px;
            padding: 9px;
            border: solid 1px #e0e2e2;
            background-color: black;
        }
        .comp .mid {
            float: left;
            display: block;
            height: 100%;
            position: relative;
            background-color: #abadc6;
            width: 50%;
        }
        .comp .mid.codigo {
            background-color: #22262b;
        }
        .comp .site {
            overflow: hidden;
            position: absolute;
            width: 105px;
            height: 138px;
            bottom: 0;
            right: 0;
        }
        .comp .site .topbar {
            width: 100%;
        }
        .comp .site .cerrar {
            width: 100%;
            padding: 3px;
            line-height: 0;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            border-radius: 4px 4px 0px 0px;
            background-color: #afa895;
        }
        .comp .site .cerrar > div {
            display: inline-block;
            width: 2px;
            height: 2px;
            border-radius: 50%;
            background: white;
            margin: 0px 1px;
        }
        .comp .site .inhead {
            padding: 2px;
            height: 5px;
            background-color: #ddd8cf;
        }
        .comp .site .inhead .item {
            width: 10px;
            height: 1px;
            background-color: #d1c9bf;
            margin: 0 1px;
            display: block;
            float: left;
        }
        .comp .txr {
            text-align: right;
        }
        .comp .txr .item {
            float: right;
        }
        .comp .inslid {
            width: 100%;
            height: 33px;
            background-color: #efebe2;
        }
        .comp .incont {
            padding-top: 10px;
            background: #fefaf0;
        }
        .comp .incont .item {
            background-color: #d1c9bf;
            width: 53px;
            height: 2px;
            display: block;
            margin: 0 auto;
            margin-top: 1px;
        }
        .comp .incont .item:nth-child(1) {
            width: 20px;
        }
        .comp .incont .item:nth-child(2) {
            margin-top: 3px;
            width: 41px;
        }
        .comp .incont .item:nth-child(3) {
            width: 32px;
        }
        .comp .incont .item:nth-child(4) {
            width: 23px;
        }
        .comp .incont .wid {
            width: 100%;
            padding: 8px 1px;
        }
        .comp .incont .wid .itwid {
            width: 33.333%;
            float: left;
            height: 26px;
            padding: 0px 3px;
        }
        .comp .incont .wid .itwid > div {
            width: 100%;
            height: 100%;
            background-color: #f5f1e6;
            position: relative;
        }
        .comp .incont .wid .itwid > div .contfoot {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 6px;
            width: 100%;
            background-color: #ebe5dc;
        }
        .comp .incont .infoot {
            background-color: #efebe2;
            height: 26px;
            width: 100%;
        }
@-webkit-keyframes code {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.6;
            }
            100% {
                opacity: 1;
            }
        }
@keyframes code {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.6;
            }
            100% {
                opacity: 1;
            }
        }
        .comp .codigo {
            padding: 14px 0px 14px 14px;
        }
        .comp .codigo .var {
            background-color: #ac5e47;
            -webkit-animation: code;
            animation: code;
            -webkit-animation-duration: 0.3s;
            animation-duration: 0.3s;
            -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        .comp .codigo .cont {
            background-color: #464748;
            -webkit-animation: code;
            animation: code;
            -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
            -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        .comp .codigo .fun {
            background-color: #fbb053;
            -webkit-animation: code;
            animation: code;
            -webkit-animation-duration: 0.2s;
            animation-duration: 0.2s;
            -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        .comp .codigo .atr {
            background-color: #645572;
            -webkit-animation: code;
            animation: code;
            -webkit-animation-duration: 0.1s;
            animation-duration: 0.1s;
            -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        .comp .codigo .item {
            height: 3px;
            width: 20px;
            float: left;
            margin-right: 3px;
        }
        .comp .codigo .item.min {
            width: 13px;
        }
        .comp .codigo .item.lrg {
            width: 30px;
        }
        .comp .codigo .line {
            padding: 2px 0;
            width: 100%;
        }
        .comp .codigo .tab1 {
            padding-left: 5px;
        }
        .comp .codigo .tab2 {
            padding-left: 8px;
        }
        .comp .codigo .tab3 {
            padding-left: 10px;
        }
        .comp .codigo .tab4 {
            padding-left: 12px;
        }

        .base {
            width: 338px;
            height: 12px;
            background: #e0e2e2;
            display: block;
            margin: 0 auto;
            border-radius: 0px 0px 6px 6px;
        }
    </style>

</head>
<body>
    <div class="wrap">
        <div class="comp">
            <div class="monitor">
                <div class="mid">
                    <div class="site">
                        <div class="topbar">
                            <div class="cerrar">
                                <div class="circl"></div>
                                <div class="circl"></div>
                                <div class="circl"></div>
                            </div>
                        </div>
                        <div class="inhead">
                            <div class="mid">
                                <div class="item"></div>
                            </div>
                            <div class="mid txr">
                                <div class="item"></div>
                                <div class="item"></div>
                                <div class="item"></div>
                                <div class="item"></div>
                            </div>
                        </div>
                        &.........完整代码请登录后点击上方下载按钮下载查看

网友评论0