<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>Insert title here</title><!--引入基本库--><script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.min.js"></script><script type="text/javascript" src="jquery-easyui-1.5.5.4/jquery.easyui.min.js"></script><script type="text/javascript" src="jquery-easyui-1.5.5.4/locale/easyui-lang-zh_CN.js"></script><link rel="stylesheet" href="jquery-easyui-1.5.5.4/themes/default/easyui.css" /><link rel="stylesheet" href="jquery-easyui-1.5.5.4/themes/icon.css" /></head><body><!--按钮跳转href:href="remote.html"按钮默认选中:selected:true按钮选中与不选择切换:toggle:true按钮图标位置:iconAlign:'right'按钮简单形式:plain:true按钮多选一:group:'g1',toggle:true--><div>基础菜单</div><a href="tree.html" class="easyui-linkbutton">text</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',selected:true">icon</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',iconAlign:'left'">icon</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',iconAlign:'left',size:'large'">icon</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',iconAlign:'top',toggle:true">icon</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-large-clipart',iconAlign:'top',toggle:true,plain:true">icon</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',group:'g1',toggle:true">icon1</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',group:'g1',toggle:true">icon2</a><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',group:'g1',toggle:true">icon3</a><!--菜单弹出对齐方式:menuAlign:'right'按钮什么情况弹出菜单:easyui-splitbuttoneasyui-menubutton--><br /><br /><div>菜单按钮</div><a href="tree.html" class="easyui-menubutton" data-options="iconCls:'icon-add',menu:'#mm1'">Add</a><a href="tree.html" class="easyui-menubutton" data-options="iconCls:'icon-help',menu:'#mm2',menuAlign:'left'">Help</a><a href="tree.html" class="easyui-splitbutton" data-options="iconCls:'icon-help',menu:'#mm3',menuAlign:'right'">Help2</a><div id="mm1" class="easyui-menu" style="width: 120px;"><div>New</div><div>Save</div><div>Exit</div></div><div id="mm2" class="easyui-menu" style="width: 120px;"><div data-options="iconCls:'icon-add',name:'new'">New</div><div data-options="iconCls:'icon-save',name:'save'">Saveqqqqqqqqqq</div><div data-options="name:'exit'">Exit</div></div><div id="mm3" class="easyui-menu" style="width: 120px;"><div data-options="iconCls:'icon-add',name:'new'">New</div><div data-options="iconCls:'icon-save',name:'save'">Saveqqqqqqqqqq</div><div data-options="name:'exit'">Exit</div></div><br /><br /><div>选项卡嵌套按钮</div><div style="margin:20px 0;"></div><div id="tt" style="width:700px;height:250px"><div title="About" style="padding:10px"></div><div title="My Documents" style="padding:10px"><ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul></div><div title="Help" style="padding:10px">This is the help content.</div></div><div id="mm"><div>Welcome</div><div>Help Contents</div><div data-options="iconCls:'icon-search'">Search</div><div>Dynamic Help</div></div><script>$(function() {var p = $('#tt').tabs().tabs('tabs')[2];var mb = p.panel('options').tab.find('a.tabs-inner');mb.menubutton({menu: '#mm',iconCls: 'icon-help'}).click(function() {$('#tt').tabs('select', 2);});});</script><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><p>基础弹框</p><a href="#" class="easyui-linkbutton" onclick="show()">Show</a><script type="text/javascript">function show() {$.messager.show({title: 'My title',msg: 'this is message',showType: 'show'})}</script><a href="#" class="easyui-linkbutton" onclick="slide()">Slide</a><script type="text/javascript">function slide() {$.messager.show({title: 'My title',msg: 'this is message',showType: 'slide',timeout: 5000})}</script><a href="#" class="easyui-linkbutton" onclick="fade()">fade</a><script type="text/javascript">function fade() {$.messager.show({title: 'My title',msg: 'this is message',showType: 'fade'})}</script><a href="#" class="easyui-linkbutton" onclick="progress()">progress</a><script type="text/javascript">function progress() {$.messager.progress({title: 'progress哈哈哈',msg: 'loading...哈哈哈',});setTimeout(function() {$.messager.progress("close")}, 3000)}</script><p>位置弹框</p><p><a href="#" class="easyui-linkbutton" onclick="topLeft()">topLeft</a></p><script type="text/javascript">function topLeft(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:"",left:0,top:document.body.scrollTop+document.documentElement.scrollTop,bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="topCenter()">topCenter</a></p><script type="text/javascript">function topCenter(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:"",//left:0,top:document.body.scrollTop+document.documentElement.scrollTop,bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="topRight()">topRight</a></p><script type="text/javascript">function topRight(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:0,left:'',top:document.body.scrollTop+document.documentElement.scrollTop,bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="centerLeft()">centerLeft</a></p><script type="text/javascript">function centerLeft(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:"",left:0,//top:document.body.scrollTop+document.documentElement.scrollTop,//bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="centerRight()">centerRight</a></p><script type="text/javascript">function centerRight(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:0,left:"",
//                      top:document.body.scrollTop+document.documentElement.scrollTop,
//                      bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="center()">center</a></p><script type="text/javascript">function center(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{
//                      right:0,
//                      left:'',
//                      top:document.body.scrollTop+document.documentElement.scrollTop,
//                      bottom:""}})}</script><p><a href="#" class="easyui-linkbutton" onclick="bottomLeft()">bottomLeft</a></p><script type="text/javascript">function bottomLeft(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{right:"",left:0,top:"",bottom:document.body.scrollTop-document.documentElement.scrollTop}})}</script><p><a href="#" class="easyui-linkbutton" onclick="bottomRight()">bottomRight</a></p><script type="text/javascript">function bottomRight(){$.messager.show({title:'My title',msg:'this is message',showType:'show'})}</script><p><a href="#" class="easyui-linkbutton" onclick="bottomCenter()">bottomCenter</a></p><script type="text/javascript">function bottomCenter(){$.messager.show({title:'My title',msg:'this is message',showType:'show',style:{
//                      right:"",
//                      left:"",top:"",bottom:document.body.scrollTop-document.documentElement.scrollTop}})}</script><br /><br /><br /><br /><br /><br /><br /><br /><!--alertconfirmprompt--><p>交互联系框</p><p>注意函数名,不要调用了系统的函数</p><a class="easyui-linkbutton" onclick="myalert()">alert</a><a class="easyui-linkbutton" onclick="myconfirm()">myconfirm</a><a class="easyui-linkbutton" onclick="myprompt()">myprompt</a><script type="text/javascript">function myalert(){
//              $.messager.alert("title","context","info");
//              $.messager.alert("title","context","error");
//              $.messager.alert("title","context","question");$.messager.alert("title","context","warning");}function myconfirm(){$.messager.confirm("title","context",function(r){alert(r)});}function myprompt(){$.messager.prompt("title","context",function(r){if (r){alert('you type: '+r);}});}</script></body></html>

easyUI入门《十一、linkbutton基础:按钮》相关推荐

  1. EasyUI入门(LinkButton,Tabs)

    今天在来按照文档上的Demo写一下效果. 一.LinkButton(按钮) 按钮组件使用超链接按钮创建.它使用一个普通的<a>标签进行展示.它可以同时显示一个图标和文本,或只有图标或文字. ...

  2. easyUI之LinkButton(按钮)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head ...

  3. EasyUI Linkbutton 链接按钮

    通过 $.fn.linkbutton.defaults 重写默认的 defaults. 链接按钮(linkbutton)用于创建一个超链接按钮.它是一个正常的 <a> 标记的表示.它可显示 ...

  4. Easyui入门视频教程 第11集---Window的使用

    目录 Easyui入门视频教程 第11集---Window的使用   Easyui入门视频教程 第10集---Messager的使用  Easyui入门视频教程 第09集---登录完善 图标自定义   ...

  5. html隐藏最大化按钮,easyui div 上下布局 最大化按钮 隐藏标题

    背景:easyui在做上下布局的时候,上面是数据列表,下面是数据图表.如下图 需要在上下面板右上角加上最大化按钮,以便可以全屏显示.逻辑就是当上面点击最大化时候,隐藏下面,主意:此时需要将下面的div ...

  6. Easyui入门视频教程 第01集---认识Easyui

    认识EasyUI 目录 ----------------------- Easyui入门视频教程 第09集---登录完善 图标自定义   Easyui入门视频教程 第08集---登录实现 ajax b ...

  7. EasyUI入门教程整理与示例代码下载

    场景 EasyUI环境搭建与入门基础语法 https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/90760947 EasyUI中拖动dra ...

  8. [Python从零到壹] 四十一.图像处理基础篇之图像采样处理

    欢迎大家来到"Python从零到壹",在这里我将分享约200篇Python系列文章,带大家一起去学习和玩耍,看看Python这个有趣的世界.所有文章都将结合案例.代码和作者的经验讲 ...

  9. JQuery EasyUI入门

    JQuery EasyUI入门 @(JavaScript)[jQuery, EasyUI, 入门] JQuery EasyUI入门 基本概述 案例 Layout布局 Accordion手风琴 Tab选 ...

  10. Membership三步曲之入门篇 - Membership基础示例

    Membership 三步曲之入门篇 - Membership基础示例 Membership三步曲之入门篇 -  Membership基础示例 Membership三步曲之进阶篇 -  深入剖析Pro ...

最新文章

  1. 宇通客车java_6米采血车
  2. phpcms V9 相关阅读/相关文章
  3. 安装php-swoole的扩展
  4. ie浏览器不支持多行隐藏显示省略号
  5. 2014届华为校园招聘机试题2
  6. WCF技术剖析之十八:消息契约(Message Contract)和基于消息契约的序列化
  7. Nignx出现failed (3: The system cannot find the path specified)问题
  8. java学习——equals()和==的比较
  9. linux安全 4a标准_Linux的未来,提高安全性的开放标准等等
  10. 信息流媒体变现_抖音信息流投放优势,为什么选择抖音信息流广告投放呢?
  11. ie9以下兼容html5,兼容ie9以下支持媒体查询和html5
  12. 项目,项目集与项目组合的区别
  13. Linux下设置桌面快捷方式(应用图标快速启动)
  14. MAC地址克隆 破解共享上网限制
  15. 【生活】驾照C1-科二手册
  16. 求助:Appium 如何实现登录手机淘宝时拖动苹果到购物车的验证
  17. 图解Java设计模式学习笔记——行为型模式(模版方法模式、命令模式、访问者模式、迭代器模式、观察者模式、中介者模式、备忘录模式、解释器模式、状态模式、策略模式、职责链模式)
  18. intellidea写java_用IntellIDEA开发JSP的一些总结 | 学步园
  19. Android实现TTS语音播报
  20. 一文就懂HashMap原理!学不会你来砍我!

热门文章

  1. C语言复习——基本概念
  2. insert into 自增 mysql_mysql执行insert into时插入自增字段不输入所有列的办法
  3. Android 集成facebook授权登录以及过程中登录错误,密钥散列不匹配
  4. postgresql nextval 使用
  5. OpenCV使用教程-读取图像imread使用说明
  6. IOS UISegmentedControl简介
  7. 高新技术企业到底有什么好处?
  8. Android手机App安全漏洞整理(小结)
  9. DB2 表Load Pending状态异常
  10. PowerDesigner中导入MYSQL数据库结构的步骤