EasyUI Forum

General Category => Bug Report => Topic started by: jxyxhz on October 27, 2011, 01:04:25 AM



Title: Jquery easyui pannel 怎么自动适应浏览器宽度和高度,当浏览器放大和缩小的时候。
Post by: jxyxhz on October 27, 2011, 01:04:25 AM
Jquery easyui pannel 怎么自动适应浏览器宽度和高度,当浏览器放大和缩小的时候。如果用resize函数好像有问题,请技术人员帮忙


Title: Re: Jquery easyui pannel 怎么自动适应浏览器宽度和高度,当浏览器放大和缩小的时候。
Post by: stworthy on October 27, 2011, 06:14:57 PM
Try below test code:

<html style="height:100%;overflow:hidden">
<head>
...
</head>
<body style="height:100%;overflow:hidden;margin:0;padding:0">
   <div class="easyui-panel" title="My Panel" fit="true">
   </div>
</body>
</html>


Title: Re: Jquery easyui pannel 怎么自动适应浏览器宽度和高度,当浏览器放大和缩小的时候。
Post by: gson on July 05, 2012, 01:46:56 AM
Try below test code:

<html style="height:100%;overflow:hidden">
<head>
...
</head>
<body style="height:100%;overflow:hidden;margin:0;padding:0">
   <div class="easyui-panel" title="My Panel" fit="true">
   </div>
</body>
</html>

panel可不可以只实现宽度fit,高度自定义.或者高度fit,宽度自定义.....