如何使zk boderlayout适合任何分辨率屏幕

时间:2013-11-23 06:22:29

标签: zk border-layout zul

 <window  height="300px">
    <borderlayout >

        <north height="60px" ></north>

        <west width="200px" ></west>

        <center></center>

        <east width="200px" ></east>

        <south height="40px"></south>

    </borderlayout>
</window>

目前,我必须将window height设置为pixel,才能使其正常运行。

因此,如果我的屏幕分辨率高度为300px,那么它将覆盖整个屏幕。

但是不会填满不同分辨率的完整屏幕......

如何根据用户屏幕分辨率使此硬编码值动态化?

我无法移除window代码。

zkfiddle example

1 个答案:

答案 0 :(得分:2)

<window  height="100%">

应该做的伎俩 也许Media Queries对你来说也很有趣。

相关问题