jQueryEasyUI框架 - panel 选项卡高度自适应

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35393869/article/details/82704566

框架的高度自适应问题,基本上都会遇到,这里无非就是样式的问题。
只需要设置外围的父级标签属性:height:auto;即可实现高度自适应。
父级元素的撑起来,将会随着子元素内容的高度,而自动撑起。

截图对比:

设置height:100%效果不佳
这里写图片描述

设置了height:auto;效果很好
这里写图片描述

这里写图片描述

主要代码片段:

<div class="easyui-panel" title="培训计划管理" style="width:100%;height:auto;padding:10px;" 
    data-options="iconCls:'icon-edit',collapsible:true,closable:true,tools:'#tt'">
    ···略···

以上就是关于“ jQueryEasyUI框架 - panel 选项卡高度自适应 ” 的全部内容。

猜你喜欢

转载自blog.csdn.net/qq_35393869/article/details/82704566