Dojo学习笔记(十一):Dojo布局——嵌套样例

简介:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML>
<html>
<head>
     <meta charset= "UTF-8" >
     <link rel= "stylesheet"  href= "dijit/themes/soria/soria.css" >
     <style type= "text/css" >
         html,body{
             height:  100 %;
             margin:  0 ;
             overflow: hidden;
             padding:  0 ;
         }
         #appLayout{
             height:  100 %;
         }
         #leftCol{
             width: 120px;
         }
         .claro .demoLayout .edgePanel{
             background-color: #d0e9fc;
         }
     </style>
     <script type= "text/javascript"  src= "dojo/dojo.js"  djConfig= "parseOnLoad:true" ></script>
     <script type= "text/javascript" >
     </script>
     <title>GridContainer学习</title>
</head>
<body  class = "soria" >
<div  class = "demoLayout"  style= "height: 300px; width: 300px"  data-dojo-type= "dijit.layout.BorderContainer"  data-dojo-props= "design: 'headline'" >
     <div  class = "demoLayout"  style= "height: 50%"  data-dojo-type= "dijit.layout.BorderContainer"  data-dojo-props= "region: 'top', splitter: true, design: 'headline'" >
         <div  class = "centerPanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "region: 'center'" >center</div>
         <div  class = "edgePanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "region: 'bottom'" >bottom</div>
     </div>
     <div  class = "centerPanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "region: 'center'" >center</div>
     <div  class = "edgePanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "splitter: true, region: 'left'" >left</div>
     <div  class = "demoLayout"  style= "width: 50%"  data-dojo-type= "dijit.layout.BorderContainer"  data-dojo-props= "region: 'right', design: 'headline'" >
         <div  class = "centerPanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "region: 'center'" >center</div>
         <div  class = "edgePanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "region: 'left'" >left</div>
     </div>
     <div  class = "edgePanel"  data-dojo-type= "dijit.layout.ContentPane"  data-dojo-props= "splitter: true, region: 'bottom'" >bottom</div>
</div>
<!-- load dojo and provide config via data attribute -->
<script src= "dojo/dojo.js"  data-dojo-config= "async:true, parseOnLoad:true" ></script>
<script>
     require([ "dijit/layout/BorderContainer" "dijit/layout/ContentPane" "dojo/parser" ]);
</script>
</body>
</html>

输出:

wKioL1RAoVby9mxUAAH0c9EEqlg137.jpg










     本文转自stock0991 51CTO博客,原文链接:http://blog.51cto.com/qing0991/1565113,如需转载请自行联系原作者





相关文章
|
XML 人工智能 缓存
使用 Higress 快速构建 AI 应用
Higress 基于企业内外的丰富场景沉淀了众多面向 AI 的功能,推出了 AI 原生的 API 网关形态并且全部开源。
453 85
|
网络安全 iOS开发
【教程】制作 iOS 推送证书
【教程】制作 iOS 推送证书
201 0
|
弹性计算 jenkins 持续交付
|
SQL NoSQL Java
信创迁移适配预研-SpringBoot连接达梦数据库DM8服务并在IDEA中连接
信创迁移适配预研-SpringBoot连接达梦数据库DM8服务并在IDEA中连接
2162 0
信创迁移适配预研-SpringBoot连接达梦数据库DM8服务并在IDEA中连接
|
5月前
|
人工智能 缓存 安全
首发,Higress AI 网关率先支持 QwQ-32B,推理成本可再降 90%
QwQ-32B 是一款拥有 320 亿参数的大模型,性能媲美 6710 亿参数的 DeepSeek-R1。它支持本地运行、显著降低企业调用成本(最高降 90%),并在 Hugging Face 和 ModelScope 开源。本文提供通过 Higress AI 网关实现 DeepSeek-R1 和 QwQ-32B 无缝切换的教程,涵盖环境准备、模型接入配置及客户端调用示例。Higress AI 网关还具备消费者鉴权、模型自动切换、Token 级限流等进阶功能,助力企业高效管理多模型服务。
310 2
|
存储 人工智能 前端开发
AI 网关零代码解决 AI 幻觉问题
本文主要介绍了 AI Agent 的背景,概念,探讨了 AI Agent 网关插件的使用方法,效果以及实现原理。
19079 136
Echarts想要将相同的点重叠显示
Echarts想要将相同的点重叠显示
381 2
CSS3 flex 布局在 wrap 换行模式下,让中间指定元素换行
CSS3 flex 布局在 wrap 换行模式下,让中间指定元素换行
1492 0
|
11月前
|
机器学习/深度学习 移动开发 JavaScript
Web实时通信的学习之旅:SSE(Server-Sent Events)的技术详解及简单示例演示
Web实时通信的学习之旅:SSE(Server-Sent Events)的技术详解及简单示例演示
4556 0
|
应用服务中间件 nginx Docker
单机编排工具之docker-compose快速入门使用
这篇文章是关于如何使用docker-compose进行单机编排的快速入门指南,包括了镜像准备、docker-compose安装、使用教程以及验证服务生效的步骤。
177 2
单机编排工具之docker-compose快速入门使用

热门文章

最新文章