zoukankan      html  css  js  c++  java
  • jquery easy ui 学习 (3) window 限制在父类窗体内

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Inline Window - jQuery EasyUI Demo</title>
        <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
        <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
        <link rel="stylesheet" type="text/css" href="../demo.css">
        <script type="text/javascript" src="../../jquery.min.js"></script>
        <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    </head>
    <body>
        <h2>Inline Window</h2>
        <p>The inline window stay inside its parent.</p>
        <div style="margin:20px 0;">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('open')">Open</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
        </div>
    
        
        <div class="easyui-panel" style="position:relative;500px;height:300px;overflow:auto;">
            <div id="w" class="easyui-window" data-options="title:'Inline Window',inline:true" style="250px;height:150px;padding:10px">
                This window stay inside its parent
            </div>
        </div>
    
    </body>
    </html>
  • 相关阅读:
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
  • 原文地址:https://www.cnblogs.com/timelesszhuang/p/3685912.html
Copyright © 2011-2022 走看看