0

how to set background image of window?

asked 2013-11-22 13:29:44 +0800

Zhouyongchang gravatar image Zhouyongchang
3 1

Hi,everyone,I am a new guy,I want to set background image of window,but I can't find appropriate tag :( so who can help me? how to set background image of window? how to set font and font size of window??

thanks.

delete flag offensive retag edit

Comments

Thank you for the advice.

Zhouyongchang ( 2013-11-25 01:14:55 +0800 )edit

Thanks for your advice,but it still does not work.

Zhouyongchang ( 2013-11-26 08:46:53 +0800 )edit

3 Answers

Sort by ยป oldest newest most voted
1
link publish delete flag offensive edit
0

answered 2013-11-25 03:24:21 +0800

Zhouyongchang gravatar image Zhouyongchang
3 1

Well,I have set a background-image like this,

<zk> <style> body{ background-image:url('t3.jpg'); } </style> ... </zk>

but,the image repeats on the whole page,I hope it lays in the center,because I want to make a login page. How should I do?

link publish delete flag offensive edit
0

answered 2013-11-26 06:15:20 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

You can change your style setting

<style> 
    .winBg { background-image:url('t3.jpg'); } 
</style>
<window contentSclass="winBg"
link publish delete flag offensive edit
Your answer
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-11-22 13:29:44 +0800

Seen: 141 times

Last updated: Nov 26 '13

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