easyui panel 瀑布流式布局
来源:互联网 发布:杜兰特总决赛数据效率 编辑:程序博客网 时间:2024/05/20 21:19
oa.page = { layout: $('<div></div>').appendTo(oa.dom.tabs.tabPanel), layoutCenter: null, /*layout布局*/ initLayout: function () { this.layout.layout({ fit: true }); this.layout.layout('add', { border: false, region: 'center' }); oa.page.layoutCenter = this.layout.layout('panel', 'center'); this.layoutCenter.css({position: 'relative'}); }, initPanels: function () { var panelData = [ {id: 'ct', col: 1, cls: 'theme-panel-green', hidden: false, title: '春光明媚'}, {id: 'xt', col: 2, cls: 'theme-panel-red', hidden: false, title: '夏日炎炎'}, {id: 'qt', col: 1, cls: 'theme-panel-blue', hidden: false, title: '秋高气爽'}, {id: 'dt', col: 1, cls: 'theme-panel-orange', hidden: false, title: '冬雪皑皑'} ]; var panelOpts = {height: 260, width: 30, left: 2.5, top: 0, col: 0}; var $panel; $.each(panelData, function (idx, data) { if (!data.hidden) { /*当超过3列就换行*/ panelOpts.col += data.col; /*panel面板的宽*/ var width = data.col * panelOpts.width + (data.col - 1) * 2.5; $panel = $('<div></div>').appendTo(oa.page.layoutCenter) .panel({ border: true, cls: data.cls, col: data.col, height: panelOpts.height, width: width + '%', hidden: data.hidden, id: data.id, style: {position: 'absolute', left: panelOpts.left + '%', top: panelOpts.top}, title: data.title }); panelOpts.left = panelOpts.col % 3 === 0 ? 2.5 : width + panelOpts.left + 2.5; panelOpts.top += panelOpts.col % 3 === 0 ? panelOpts.height + 25 : 0; } }); } }; oa.page.initLayout(); oa.page.initPanels();
布局展示
阅读全文
0 0
- easyui panel 瀑布流式布局
- 瀑布流式布局浅析
- 网站瀑布流式布局
- Android 瀑布流式布局
- 网站布局中的瀑布流式布局
- js 实现瀑布流式布局
- Android RecyclerView 的瀑布流式布局
- freetile.js--创建瀑布流式布局
- 瀑布式div布局
- 瀑布式布局实现
- 瀑布流图片布局
- RecyclerView布局+瀑布流
- easyUI Panel
- easyUI--panel
- easyui-panel
- 使用easyUI在panel中创建复杂布局
- 整理 collectionView 瀑布流 布局
- 自定义瀑布流的布局
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- 在C/C++中的struct使用函数指针,而且在C++中的struct还能使用成员函数
- 1011. World Cup Betting (20)
- Eclipse中web项目部署至Tomcat步骤
- bzoj 3224 treap模板
- easyui panel 瀑布流式布局
- acm 1007 Quoit Design
- 验证上传图片格式
- react-native 结合ant-Design- mobile
- Java常量池之String.intern()
- 渗透测试工具sqlmap基础教程
- 2017.7.3笔记总结 防浪涌设计
- 吃透这50道经典应用题,比去辅导班强百倍
- 婚恋社交项目,寻找创业合伙人,坐标上海