Revision history [back]

click to hide/show revision 1
initial version

asked 2013-04-22 03:21:14 +0800

vincent0825 gravatar image vincent0825

How to zul Component have transparent?

my zk version is 6.5.1

I want to put a background image on the page, and then put inside a div or table, but I found that no matter how stressed this transparent div no way will remain white and then cover the Figure, Is there any way to change it?

<zk>

<zscript>

<style> .pic { background-image : url(img/MIO.png); } </style>

<window id="winLogin" border="none" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') @init('ZkLoginViewModel')" hflex="1" vflex="1" focus="true" sclass="pic"> <box>
<hbox> .... </hbox> </box>

</window>

</zk>

How to zul Component have transparent?

my zk version is 6.5.1

I want to put a background image on the page, and then put inside a div or table, but I found that no matter how stressed this transparent div no way will remain white and then cover the Figure, Is there any way to change it?

<zk>

<zscript>

<zk>

<zscript><![CDATA[
    //@IMPORT
    import com.dtc.mio.view.zk.viewmodel.ZkLoginViewModel;
]]></zscript>

<style>
    .pic { 
       background-image : url(img/MIO.png);
    }
</style>

</style> <div height="100px"/> <div align="center"> <window id="winLogin" border="none" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('ZkLoginViewModel')" hflex="1" vflex="1" vflex="1" focus="true" sclass="pic"> <box>
<div height="220px"/> <hbox> .... </hbox> </box>
<div align="left" height="20px"> </div> </window> </zk>

</window>

</zk>

How to zul Component have transparent?

my zk version is 6.5.1

I want to put a background image on the page, and then put inside a div or table, but I found that no matter how stressed this transparent div no way will remain white and then cover the Figure, Is there any way to change it?

<zk>

<zscript><![CDATA[
    //@IMPORT
    import com.dtc.mio.view.zk.viewmodel.ZkLoginViewModel;
]]></zscript>

<style>
    .pic { 
       background-image : url(img/MIO.png);
    }
</style>
<div height="100px"/>
<div align="center">
<window id="winLogin" border="none" apply="org.zkoss.bind.BindComposer"
    viewModel="@id('vm') @init('ZkLoginViewModel')" hflex="1" vflex="1"
    focus="true" sclass="pic">
        <box>
            <div height="220px"/>
            <hbox>
                ....
            </hbox>
        </box>
        <div align="left" height="20px">
        </div>
</window>

</zk>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More