刚自学easyui布局,菜鸟级别。遇到如下问题,求大神指教解惑,或者帮忙解答出来~

如题所述

var width = $(window).width()-80;
var height = $(window).height()-120;
stView_layout = $('#stView_layout').layout({
width: width,
height: height
});
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
});
}
}
});追问

这是什么啊~有点看不懂,应该不是easyui吧?

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-04-10
第二种嵌套吧追问

自己用两种都试了一下不知道代码有问题还是自己设计问题,都出不来。上面是第二种思路的代码~

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网