Friday, September 17, 2010

CSS in the minimum height (min-height) of the Magical Effect



BOX minimum height can be set to a minimum height, when its content less often, but also to maintain a certain height BOX, beyond the automatic downward, but so far, only Opera and Mozilla support, IE7 began to also support , but the IE7 beta, so the official version posted to the popular may be a relatively long period of time, unless it is tied to a MS operating system, how the existing basis (IE6 80-90%), rational, magical effect Minimum height of it?

Assume that there are two BOX, we need it the least height 150PX.

CSS:

div.box1, div.box2 (

width: 300px;

min-height: 150px;

background: # EEE;

float: left;

margin-right: 20px;

)

xhtml:



IE, did not maintain a minimum height of 150px





BOX minimum height can be set to a minimum height,


When the content less often, but also to maintain a certain height BOX




Now the effect of, IE in not maintaining the minimum height of 150px. The solution, in order to set a high IE.

* Html div.box1, * html div.box2 (height: 150px;)

You can also use CSS attribute selectors (Attribute Selectors)

div.box1, div.box2 (...... height: 150px;)

/ * IE depend on maintaining the minimum height, beyond the automatic downward backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news: 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

div [class]. box1, div [class]. box2 (height: auto;)

/ * A class selector (class) attributes of DIV object backup / bin / bin_old / conf / data / eshow / log / maint / news: 10 / news: 11 / news: 12 / news: 13 / news: 14 / news : 15 / news: 16 / news: 17 / news: 18 / news: 2 / news: 3 / news: 4 / news: 5 / news: 6 / news: 7 / news: 8 / news: 9 / seeds / svn / tasks / tmp / xml2dict-read-only /

IE is not supported by Natural Rights, Opera and Mozilla support, read this highly. To applications: search, articles page (not using 100% high, when the contents of seized less time, and will not page too short.







Recommended links:



China Unicom next month to adjust the proportion of SP into



mxf CONVERTER



Jsp, servlet talk about Chinese issues



Facebook's GROWING pains



Star Speed: Gentleman Or "rogue"



Mov to mpeg converter free



Review Health And NUTRITION



Xi Guohua, vice minister of MII: China's 3G licenses around four factors



Clear links in the Production of hidden "oil tiger"



Top Ad Blockers



Wealth Life - INTERVIEW with Dr. Xin Rong Record



John XINHUA introduction of Guangxi sugar set EAM2008



Hd video converter



avchd xbox 360



Alternative workplace quit: to a rival company to do an undercover INTELLIGENCE probe



No comments:

Post a Comment