2013年11月21日星期四

About Resolution and filters have two questions

If that one , how to make a DIV JSP pages automatically filled based on different resolutions whole page ?
2, IE how do I find the Internet a gradient background with a filter for a long time did not seem to effect
------ Solution --------------------------------------------
1. screen resolution , div on the aspect , the screen resolution is set
height returns the display screen height.
width returns the width of the display screen .

availHeight return to screen height ( except Windows task bar outside ) .
availWidth return to display the screen width ( except Windows task bar outside ) .
of course, minus the browser's address bar, toolbar , this is not very good, With this two

document.documentElement.scrollWidth document.documentElement.scrollHeight,
Or, just remove the body of padding, and margin, set up 100%

2. using jquery like gradient

------ Solution ------------------------------------ --------
width: 100%; height: 100%;

Share a picture :


gradient : http://www.zhangxinxu.com/wordpress/2010/04/css% E5% AE% 9E% E7% 8E% B0% E5% 85% BC% E5% AE% B9% E6% 80% A7% E7% 9A% 84% E6% B8% 90% E5% 8F% 98% E8% 83% 8C% E6% 99% AFgradient% E6% 95% 88% E6% 9E% 9C /
- ----- For reference only ---------------------------------------

Thank you help first problem occurs if the IE toolbar that mess I think is just the scroll bar does not appear automatically fill can achieve thing ?
I just put it first opened toolbar sliding down the entire page appeared on the scroll bar

没有评论:

发表评论