easy ui 使用总结

头部引用

<link type="text/css" rel="stylesheet" href="js/easy_ui/themes/metro-green/easyui.css" />
<link rel="stylesheet" type="text/css" href="js/easy_ui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="css/map.css">
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/easy_ui/jquery.easyui.min.js"></script>


页面整体布局:

<div id="container" class="easyui-layout" style="width:100%; height: 100%;">

        <div id="west_div" data-options="region:'west',split:false,collapsible:false" title="" style="width:200px;overflow: hidden;">

           //region:'west' 表示左边收缩面板 对应的还有 north south east center

          <div class="easyui-accordion" style="width:180px;height: 100%; margin-left: 5px; overflow: hidden;">
            <div title="xx" data-options="iconCls:'ico-actor'" style="overflow:auto;padding:10px; text-align: center;">
              <a href="#" class="easyui-linkbutton" style="width:150px; margin-top: 5px;"></a>
              <a href="#" class="easyui-linkbutton" style="width:150px; margin-top: 8px;" ></a>
             <a href="#" class="easyui-linkbutton" style="width:150px; margin-top: 8px;" ></a>
             <a href="#" class="easyui-linkbutton" style="width:150px; margin-top: 8px;"></a>
         </div> 

        //easyui-accordion 为上下收缩面板样式

        </div>

</div>


定义一个弹出窗口代码:

<div id="boundaryLine_w" class="easyui-window" title="飞行控制" data-options="iconCls:'ico-flyset',minimizable:false,maximizable:false,top:0,left:205" style="width:300px;height:160px;padding:0px;">

</div> //top left 设置窗口显示时距离左边和顶部的距离

关闭窗口:$("#lightSet_w").window('close');


水平拉杆:

<input class="easyui-slider" id="light_slider" data-options="showTip:true,max:18,min:6,value:12,rule:[6,'|',9,'|',12,'|',15,'|',18],tipFormatter:tipFormatter,onChange:sliderOnChange" style="width:250px; height:100px;">

//标尺提示格式化过程
   function tipFormatter(value) {
    return "<font size=\"5px\">" + value + ':00</font>';
   }

 //标签改变时执行
   function sliderOnChange(value) {


   }





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

骑着骆驼写程序

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值