zoukankan      html  css  js  c++  java
  • Window01

    1

    <script src="~/jquery-easyui-1.5.5.2/jquery.min.js"></script>
    <link href="~/jquery-easyui-1.5.5.2/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/jquery-easyui-1.5.5.2/themes/color.css" rel="stylesheet" />
    <link href="~/jquery-easyui-1.5.5.2/themes/icon.css" rel="stylesheet" />
    <script src="~/jquery-easyui-1.5.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/jquery-easyui-1.5.5.2/jquery.easyui.min.js"></script>
    
    
     <!--简单的登录窗口-->
        <div id="win01" style="300px;height:180px;">
            <form style="padding:10px 20px 10px 40px;">
                <p>Name: <input type="text"></p>
                <p>Pass: <input type="password"></p>
                <div style="padding:5px;text-align:center;">
                    <a href="#" class="easyui-linkbutton" icon="icon-ok">Ok</a>
                    <a href="#" class="easyui-linkbutton" icon="icon-cancel">Cancel</a>
                </div>
            </form>
        </div>
        <!--窗口的样式-->
        <div>
            <div id="win02"></div>
            <div id="win03"></div>
            <div id="win04"></div>
            <div id="win05"></div>
            <div id="win06"></div>
            <div id="win07"></div>
            <div id="win08"></div>
        </div>
        <div id="footer" style="padding:5px;">Footer Content.</div>
    

     2 script:

    <script>
        $(document).ready(function () {
    
            // 登录窗口
            $("#win01").window({
                title: 'Login',
                closed: true,
                collapsible: false,// 是否可以伸缩
                minimizable: false,//最小化
                maximizable: false,//最大化         
                // 可以自定义工作栏
                // 参数为一个数组
                //handler:点击事件
                //iconCls  图标样式
                tools: [{
                    iconCls: 'icon-add',
                    handler: function () {
                        alert('add');
                    }
                }]
    
            });
    
            // 窗口样式
            $('#win02').window({
                title: '正常',
                 300,
                height: 150,
                left: 10,
                top: 50,
                inline: true,
                closable: false, // 是否显示关闭按钮
                draggable: false, // 是否可以拖拽
                resizable: false,//定义窗口是否可调整尺寸。
                footer: '#footer'
            });
    
            $('#win03').window({
                title: '正常',
                 300,
                height: 150,
                left: 320,
                top: 50,
                inline: true,
                cls:'c1'  // 绿色的样式
            });
    
            $('#win04').window({
                title: '咖啡色',
                 300,
                height: 150,
                left: 630,
                top: 50,
                inline: true,
                cls: 'c2'  // 咖啡色
            });
    
            $('#win05').window({
                title: '粉红色',
                 300,
                height: 150,
                left: 960,
                top: 50,
                inline: true,
                cls: 'c3' , // 咖啡色
                border:'thin'  // 窄边框
            });
    
            $('#win06').window({
                title: '浅绿色',
                 300,
                height: 150,
                left: 1270,
                top: 50,
                inline: true,
                cls: 'c4', // 粉红色
                border: 'thin'  // 窄边框
            });
    
            $('#win07').window({
                title: '红色',
                 300,
                height: 150,
                left: 1600,
                top: 50,
                inline: true,
                cls: 'c5', // 
                border: 'thin'  // 窄边框
            });
    
            $('#win08').window({
                title: '蓝色',
                 300,
                height: 150,
                left: 10,
                top: 230,
                inline: true,
                cls: 'c6', // 蓝色
                border: 'thin'  // 窄边框
            });
    
        });
    
    </script>
    

      3、 展示

  • 相关阅读:
    robotframework使用之 下拉框处理
    Python操作MySQL
    Python发送邮件
    Redis 常用命令
    安装htop教程及坑
    探索式测试-概述
    Git相关命令教程
    [精华][推荐]SSO CAS单点登录框架学习 环境搭建
    [精华][推荐]SSO CAS单点登录框架学习 搭建详细步骤及源码
    [精华][推荐]CAS实现单点登录实例源码
  • 原文地址:https://www.cnblogs.com/hnzheng/p/9185342.html
Copyright © 2011-2022 走看看