欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jqeury-easyui-layout問題解決方法

 更新時間:2014年03月24日 15:43:12   作者:  
jqeury-easyui-layout問題:當把class=“easyui-layout”寫在一個獨立的div中時,layout的樣式無法顯示,具體示例如下
今天在用easyui做布局時,碰到了一個疑惑的問題。

問題:當把class=“easyui-layout”寫在一個獨立的div中時,layout的樣式無法顯示,也不報錯。

例如:
復制代碼 代碼如下:

<span style="font-size:14px;"><body >
<div class="easyui-layout">
<div data-options="region:'north',title:'North Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'south',title:'South Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width: 100px;">
</div>
<div data-options="region:'west',title:'West',split:true" style="width: 100px;">
</div>
<div data-options="region:'center',title:'center title'" href="CenterPage.html" style="background: #eee; overflow: hidden;">
</div>
</div>
</body></span>

顯示:
 
解決:把class=“easyui-layout”寫在body中時,問題就迎刃而解了。且region屬性不能被其他無關的div所包含。

代碼:
復制代碼 代碼如下:

<span style="font-size:14px;"><body class="easyui-layout">

<div data-options="region:'north',title:'North Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'south',title:'South Title',split:true" style="height: 100px;">
</div>
<div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width: 100px;">
</div>
<div data-options="region:'west',title:'West',split:true" style="width: 100px;">
</div>
<div data-options="region:'center',title:'center title'" href="CenterPage.html" style="background: #eee; overflow: hidden;">
</div>

</body></span>

 
一直在想這是為什么?

相關文章

最新評論