温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

jQuery中布局组件EasyUI Layout怎么用

发布时间:2021-08-09 14:02:00 来源:亿速云 阅读:110 作者:小新 栏目:web开发

这篇文章给大家分享的是有关jQuery中布局组件EasyUI Layout怎么用的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

layout 布局组件,依赖于panel,自己开发个web小程序的时候直接用这个组件布局很方便。

对于一个web程序原来说,特别是像我这种一遇到界面美化问题就找美工的程序员,想自己独立的开发一个东西,除了套用以前的项目中的界面布局之外就没别的办法了,虽然我们可以用ifame切分出一个界面布局,但是我不会添加样式啊。使用layout组件就可以帮我们快速的有一个界面布局,而且美观效果也看得过去。

看个例子:

<!doctype html> 
<html lang="en"> 
 <head> 
 <meta charset="UTF-8"> 
 <script type="text/javascript" src="easyui/jquery.min.js"></script> 
 <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script> 
 <script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js" ></script> 
 <link rel="stylesheet" type="text/css" href="easyui/themes/bootstrap/easyui.css" rel="external nofollow" /> 
 <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" /> 
 <title>Document</title> 
 </head> 
<body class="easyui-layout"> 
 <div data-options="region:'north',border:false" ><strong><font size=2 color="color">您好,欢迎<span >  </span>来到地球!</br>这个世界充满了危险,劝你早点回去!</font></strong></div> 
 <div id="menu" data-options="region:'west',split:true,title:'2014-15赛季赛程'" > 
  <ul> 
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >西甲赛程</a></strong> 
   </li> 
   <br> 
   <br> 
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >英超赛程</a></strong> 
   </li> 
   <br> 
   <br> 
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >德甲赛程</a></strong> 
   </li> 
   <br> 
   <br>   
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >法甲赛程</a></strong> 
   </li> 
   <br> 
   <br>   
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >意甲赛程</a></strong> 
   </li> 
   <br> 
   <br>   
   <li> 
    <strong><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >欧冠赛程</a></strong> 
   </li> 
 
  </ul> 
 
 </div> 
 <div data-options="region:'east',split:true,collapsed:true,title:'快速通道'" ><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >购买船票</a></br><a href="http://blog.csdn.net/caohaicheng" rel="external nofollow" >逃生指南</a></div> 
 <div data-options="region:'south',border:false" ><center>http://blog.csdn.net/caohaicheng</center></div> 
 <div data-options="region:'center',title:'主界面'"> 
  
 </div> 
</body> 
</html>

效果图:

jQuery中布局组件EasyUI Layout怎么用

感谢各位的阅读!关于“jQuery中布局组件EasyUI Layout怎么用”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI