Easyui入門視頻教程 第11集---Window的使用


目錄

Easyui入門視頻教程 第11集---Window的使用

第一種:

<div id="win" class="easyui-window" title="My Window" style="width:600px;height:400px"   
        data-options="iconCls:'icon-save',modal:true">   
    Window Content   
</div> 

 

第二種:
<div id="win"></div>  
$('#win').window({   
    width:600,   
    height:400,   
    modal:true   
}); 

 

title 窗體的標題
collapsible 是否可以 收縮
minimizable 是否顯示最小化按鈕
maximizable 是否顯示最大化按鈕
closable 是否顯示關閉按鈕
closed 是否關閉它
zIndex 垂直坐標
draggable 是否可以拖動
resizable 是否可以拉大
shadow 是否顯示 陰影
inline 是否
modal 是否顯示遮擋層

<div id="w" class="easyui-window" title="登錄" data-options="modal:true,closed:false,iconCls:'icon-laugh',shadow:false,draggable:false" style="width:500px;height:200px;padding:10px;">
                用戶:<input id="name" type="text" />
        密碼:<input id="Password1" type="password" />
        <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true">登錄</a>  
        <input id="Button1" type="button" value="button" />
        <label id="show" style=" color:Red;"></label>
        </div>

    <script type="text/javascript">
        $(document).ready(function () {
            // 在這里寫你的代碼...
            //$('#btn').linkbutton('enable');
            //$('#btn').linkbutton('disable');

            $('#w').window({resizable:false});
        });

        function Reflesh() {
            $('#w').window('refresh', './user/Reflesh'); 
        }

 

視頻下載地址
http://pan.baidu.com/s/1jGC2yBs

 需要源碼

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM