easyui layout 布局

提问 未结 2 6102
oneforall 5年前
悬赏:20飞吻
<body  class="easyui-layout">
<div class="easyui-layout" data-options="fit:true" id="ytqMain">
<div data-options="region:'north',split:'true'" style="height:25%;">
<div class="easyui-layout" data-options="fit:true">
通过jquery的$("body").html()获取渲染后的html源码如下:
(1):
<div class="easyui-layout layout easyui-fluid" data-options="fit:true" id="ytqMain" style="width: 1335px; height: 672px;">
<div class="panel layout-panel layout-panel-north panel-htop layout-split-north easyui-fluid" style="width: 1335px; left: 0px; top: 0px;">
<div data-options="region:'north',split:'true'" style="width: 1333px; height: 161px;" title="" class="panel-body panel-body-noheader layout-body panel-noscroll">
<div class="easyui-layout layout easyui-fluid" data-options="fit:true" style="width: 1333px; height: 161px;">
(2):
<div class="easyui-layout layout easyui-fluid" id="ytqMain" style="width: 1px; height: 100px;" data-options="fit:true">
<div class="panel layout-panel layout-panel-north panel-htop layout-split-north">
<div title="" class="panel-body panel-body-noheader layout-body panel-noscroll" data-options="region:'north',split:'true'">
<div class="easyui-layout layout easyui-fluid" style="width: 1px; height: 1px;" data-options="fit:true">
为什么第一次宽高正常,第二次宽高不正常
回帖
回帖须知