demo.html 1.65 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../js/jquery-1.7.1.js"></script>


<script>
    // var str;
    // var ff;
    // $(function(){
    //     var _url = "../js/10.json";
    //     $.ajax({
    //         type: "GET",
    //         url: _url,
    //         dataType: "json",
    //         contentType: "application/json",
    //         success: function(res) {
    //             console.log(res);
    //             ff = res;
    //             fun(res)
    //         },
    //         error: function(XMLHttpRequest, textStatus, errorThrown) {
    //             console.log('Ajax langs.json error');
    //             console.log(XMLHttpRequest);
    //         }
    //     });
    // })

    // function fun(res){
    //     str = res;
    // }
</script>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    html, body{
        width: 100%;
        height: 100%;
    }
    .programing{
        width: 100%;
        height: 100%;
        position: absolute;
        overflow: hidden;
        box-sizing: border-box;
    }
    .record-title{
        height: 60px;
        position: absolute;
        background-color: #999;
        top: 0;
    }
    .console-wrap{
        height: 60px;
        position: absolute;
        background-color: #00F;
        bottom: 0;
    }

    .record-wrap{
        padding: 60px 0;
        height: 100%;
        box-sizing: border-box;
    }

</style>
</head>
<body>
    <div class="programing">
        <div class="record-title">sd</div>
        <div class="record-wrap">ds</div>
        <div class="console-wrap">fad</div>
    </div>
</body>
</html>