zoukankan      html  css  js  c++  java
  • 雷林鹏分享:jQuery EasyUI 布局

      jQuery EasyUI 布局 - 创建 XP 风格左侧面板

      通常情况下,在 Windows XP 的资源管理器文件夹中,左侧的面板(panel)包含一些常见任务。 本教程向您展示如何通过 easyui 的面板(panel)插件来创建 XP 左侧面板。

      定义一些面板(panel)

      我们定义一些面板(panel),这些面板(panel)用来显示一些任务。每个面板(panel)应该至少有折叠/展开工具按钮。

      代码如下所示:

      

      

      View as a slide show

      Order prints online

      Print pictures

      

      

      

      Make a new folder

      Publish this folder to the Web

      Share this folder

      

      

      

      New York

      My Pictures

      My Computer

      My Network Places

      

      

      

      My documents

      File folder

      Date modified: Oct.3rd 2010

      

      

      自定义面板(panel)的外观效果

      请注意,这个视图外观效果不是我们想要的,我们必须改变面板(panel)的头部背景图片和折叠/展开按钮的图标。

      做到这一点并不难,我们需要做的只是重新定义一些 CSS。

      .panel-body{

      background:#f0f0f0;

      }

      .panel-header{

      background:#fff url('images/panel_header_bg.gif') no-repeat top right;

      }

      .panel-tool-collapse{

      background:url('images/arrow_up.gif') no-repeat 0px -3px;

      }

      .panel-tool-expand{

      background:url('images/arrow_down.gif') no-repeat 0px -3px;

      }

      由此可见,使用 easyui 定义用户界面非常简单。

      下载 jQuery EasyUI 实例

      jeasyui-layout-xp.zip

      本文转载自:w3cschool(编辑:雷林鹏 来源:网络 侵删)

  • 相关阅读:
    VIJOS-P1340 拯救ice-cream(广搜+优先级队列)
    uva 11754 Code Feat
    uva11426 GCD Extreme(II)
    uvalive 4119 Always an Interger
    POJ 1442 Black Box 优先队列
    2014上海网络赛 HDU 5053 the Sum of Cube
    uvalive 4795 Paperweight
    uvalive 4589 Asteroids
    uvalive 4973 Ardenia
    DP——数字游戏
  • 原文地址:https://www.cnblogs.com/pengpeng1208/p/10824892.html
Copyright © 2011-2022 走看看