0

請問zu裡面的component有辦法透明嗎?

asked 2013-04-16 11:07:28 +0800

vincent0825 gravatar image vincent0825
0

我的zk版本是6.5.1

我想要在網頁放一個背景圖, 然後把一塊div或是table放到裡面, 但是我發現不管怎麼調 這塊div都沒辦法透明,都會保持白色然後把圖遮住,請問有什麼辦法可以改嗎?

<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>

delete flag offensive retag edit

1 Reply

Sort by » oldest newest

answered 2013-05-10 17:02:05 +0800

roliroli gravatar image roliroli
164 4

這個是 CSS 問題吧...跟 ZK 沒什麼關係。 請參考這個網址 http://www.w3schools.com/css/cssimagetransparency.asp

這個標題下的範例應該能解決你的問題 Example 3 - Text in Transparent Box

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-04-16 11:07:28 +0800

Seen: 24 times

Last updated: May 10 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More