zoukankan      html  css  js  c++  java
  • easyUI-layout布局

    https://www.cnblogs.com/kexb/p/3685913.html

    <!DOCTYPE html>

    <html>
    <head>
    <meta charset="utf-8">
    <title>按钮</title>
    <link rel="stylesheet" type="text/css" href="js/jquery-easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="js/jquery-easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="js/jquery-easyui/themes/default/layout.css">
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery-easyui/jquery.easyui.min.js"></script>
    <style>
    img {
    100px;
    height: 100px;
    overflow: hidden;
    }
    .p-search{
    background:#fafafa;
    padding:5px;
    border:1px solid #ccc;
    border-bottom:0;
    overflow:hidden;
    }
    .p-search input{
    300px;
    border:1px solid #ccc;
    background: #fff url('images/search.png') no-repeat right top;
    }
    .p-right{
    text-align:center;
    border:1px solid #ccc;
    border-left:0;
    150px;
    background:#fafafa;
    padding-top:10px;
    }
    </style>
    <script>
    //函数showcontent不能先加载上下文再来执行,否则没有效果
    function showcontent(language) {
    $('#content').html('Introduction to ' + language + ' language');
    }
    </script>
    </head>
    <body>
    <div class="easyui-layout" style=" 400px; height: 200px">
    <div region="west" split="true" title="边框布局" style=" 150px">
    <p style="padding:5px;margin:0;">Select language:</p>
    <ul>
    <li><a href="javascript:void(0)" onclick="showcontent('java')">Java</a></li>
    <li><a href="javascript:void(0)" onclick="showcontent('cshape')">C#</a></li>
    <li><a href="javascript:void(0)" onclick="showcontent('vb')">VB</a></li>
    <li><a href="javascript:void(0)" onclick="showcontent('erlang')">Erlang</a></li>
    </ul>
    </div>
    <div id="content" region="center" title="Language" style="padding:5px;">
    </div>
    </div>

    <br><br><br><br>
    <!-- collapsible="true"点击可以折叠;fit="true :datagrid自适应宽度
    -->
    <div class="easyui-panel" title="Complex Panel Layout" iconCls="icon-search" collapsible="true"
    style="padding:5px;500px;height:250px;">
    <div class="easyui-layout" fit="true">
    <div region="north" border="false" class="p-search">
    <label>Search:</label><input/>
    </div>
    <div region="center" border="false">
    <div class="easyui-layout" fit="true">
    <div region="east" border="false" class="p-right">
    <img src="images/1.jpg"/>
    </div>
    <div region="center" border="false" style="border:1px solid #ccc;">
    <div class="easyui-layout" fit="true">
                            split="true" :分割

    <div region="south" split="true" border="false" style="height:60px;">
    <textarea style="border:0;100%;height:100%;resize:none">Hello,你可以在此输入内容</textarea>
    </div>
    <div region="center" border="false">
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>
    没有人能一路单纯到底,但是要记住,别忘了最初的自己!
  • 相关阅读:
    openlayers wfs获取要素
    ArcEngine 直连连接SDE
    arcgis中的 style和serverstyle
    C#开源大全
    C#+ArcEngine 序列化和反序列化AE对象
    C# lazy加载
    Testing 理论测试(三)
    软件开发模型种类(7)
    Testing理论测试题(二)
    Testing 理论测试题(一)
  • 原文地址:https://www.cnblogs.com/LindaBlog/p/9224397.html
Copyright © 2011-2022 走看看