zoukankan      html  css  js  c++  java
  • easyUI ---linkButton

    <!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/linkbutton.css">
    <link rel="stylesheet" type="text/css" href="js/jquery-easyui/themes/default/splitbutton.css">
    <script src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script>
    $(function () {
    //禁用链接按钮
    $('#cancel').linkbutton('disable');

    //启用链接按钮
    // $('#cancel').linkbutton({disabled:false});
    });
    </script>
    </head>
    <body>
    <!--链接按钮-->
    <div>
    <a href="#" id="cancel" class="easyui-linkbutton" iconCls="icon-cancel">Cancel</a>
    <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-print">Print</a>
    <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload">Refresh</a>
    <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-search">Query</a>
    </div>

    <br><br><br>

    <div>
    <div style="background:#fafafa;padding:5px;200px;border:1px solid #ccc">
    <a href="#" class="easyui-menubutton" menu=".box1" iconCls="icon-edit">Edit</a>
    <a href="#" class="easyui-menubutton" menu=".box2" iconCls="icon-help">Help</a>
    </div>
    <!--菜单按钮-->
    <div class="box1" style=" 100px;">
    <div iconCls="icon-add">Add</div>
    是iconCls:不是class
    <div iconCls="icon-cut">Cut</div>
    <div iconCls="icon-undo">Undo</div>
    <!--分割按钮:类名"menu-sep"-->
    <div class="menu-sep"></div>
    <div>Copy</div>
    <div>Delete</div>
    <div class="menu-sep"></div>
    <div iconCls="icon-redo">Redo</div>
    <div iconCls="icon-remove">Remove</div>
    <div>
    <span>Open</span>
    <div style="150px;">
    <div>Firefox</div>
    <div>Internet Explorer</div>
    <div class="menu-sep"></div>
    <div>Select Program...</div>
    </div>
    </div>
    <div>Select All</div>
    </div>
    <div class="box2" style=" 150px">
    <div>Help</div>
    <div>Update</div>
    <div>About</div>
    </div>
    </div>
    </body>
    </html>
    没有人能一路单纯到底,但是要记住,别忘了最初的自己!
  • 相关阅读:
    Tweet button with a callback – How to?
    Get URL parameters & values with jQuery
    javascript 原生 cookie 处理
    sae crop 文档
    javascript获取地址栏参数/值
    Google Calendar(日历)设置农历生日提醒
    字符串转换成JSON(js)
    The ultimate jQuery Plugin List(终极jQuery插件列表)
    用 javascript 判断 IE 版本号
    Unable to start services through AMBARI UI
  • 原文地址:https://www.cnblogs.com/LindaBlog/p/9224161.html
Copyright © 2011-2022 走看看