js实例教程-使用Jquery EasyUI进行页面布局(代码教程)

发布时间:2018-11-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了js实例教程-使用Jquery EasyUI进行页面布局(代码教程)脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

下面为为大家介绍一种快速搭建页面布局的方法,那就是使用EasyUI进行布局。

在布局之前首先要从EasyUI包里面引用五个文件。

  <link href="EasyUI/themes/MATErial/easyui.css" rel="stylesheet" />     <link href="EasyUI/themes/icon.css" rel="stylesheet" />--图片样式     <script src="EasyUI/jquery.min.js"></script>     <script src="EasyUI/jquery.easyui.min.js"></script>     <script src="EasyUI/locale/easyui-lang-zh_CN.js"></script>--使用语言

--图片样式 --使用语言

创建布局有很多种方法:

1. 通过标签创建布局

 <p id="cc" class="easyui-layout" style="width:600px;height:400px;">     <p data-options="region:&#39;north',tITle:'North Title',split:true" style="height:100px;"></p>      <p data-options="region:'south',title:'South Title',split:true" style="height:100px;"></p>     <p data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></p>     <p data-options="region:'west',title:'West',split:true" style="width:100px;"></p>    <p data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></p>    </p>  

2. 使用完整页面创建布局

 <body class="easyui-layout">        <p data-options="region:'north',title:'North Title',split:true" style="height:100px;"></p>      <p data-options="region:'south',title:'South Title',split:true" style="height:100px;"></p>      <p data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></p>      <p data-options="region:'west',title:'West',split:true" style="width:100px;"></p>         <p data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></p>     </body >

布局可以分为五个部分,东、西、南、北、中,其中“中”间部分是必须要有的,要写你的内容,其他的可以进行选择性的删除。

还可通过title来改变标题。

下面为为大家介绍一种快速搭建页面布局的方法,那就是使用EasyUI进行布局。

在布局之前首先要从EasyUI包里面引用五个文件。

  <link href="EasyUI/themes/material/easyui.css" rel="stylesheet" />     <link href="EasyUI/themes/icon.css" rel="stylesheet" />--图片样式     <script src="EasyUI/jquery.min.js"></script>     <script src="EasyUI/jquery.easyui.min.js"></script>     <script src="EasyUI/locale/easyui-lang-zh_CN.js"></script>--使用语言

--图片样式 --使用语言

创建布局有很多种方法:

1. 通过标签创建布局

 <p id="cc" class="easyui-layout" style="width:600px;height:400px;">     <p data-options="region:'north',title:'North Title',split:true" style="height:100px;"></p>      <p data-options="region:'south',title:'South Title',split:true" style="height:100px;"></p>     <p data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></p>     <p data-options="region:'west',title:'West',split:true" style="width:100px;"></p>    <p data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></p>    </p>  

2. 使用完整页面创建布局

 <body class="easyui-layout">        <p data-options="region:'north',title:'North Title',split:true" style="height:100px;"></p>      <p data-options="region:'south',title:'South Title',split:true" style="height:100px;"></p>      <p data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></p>      <p data-options="region:'west',title:'West',split:true" style="width:100px;"></p>         <p data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></p>     </body >

布局可以分为五个部分,东、西、南、北、中,其中“中”间部分是必须要有的,要写你的内容,其他的可以进行选择性的删除。

还可通过title来改变标题。

觉得可用,就经常来吧!Javascript技巧 脚本宝典 欢迎评论哦!&nbsp;js技巧,巧夺天工,精雕玉琢。小宝典献丑了!

脚本宝典总结

以上是脚本宝典为你收集整理的js实例教程-使用Jquery EasyUI进行页面布局(代码教程)全部内容,希望文章能够帮你解决js实例教程-使用Jquery EasyUI进行页面布局(代码教程)所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。