inicio mail me! sindicaci;ón

The picture in how controlling a webpage with CSS gets used to size oneself

The picture is self-reacting size is a very commonly used function, vessel is opened to prevent a picture when undertaking making and have necessary control to the dimension of the picture, can we control a picture to make it gets used to size oneself with using CSS?

We thought of a simpler means of settlement, although not be exceedingly perfect, if your demand is not very high, can have satisfied your need. We read the code below:

It is quotative content below:

Div Img {Max-width:600px;Width:600px;Width:eXpression(document.body.clientWidth>600? “600px” : “Auto” );Overflow:hIdden;
}

◎ Max-width:600px; issues the biggest width to be 600px in the other browser is not IE such as IE7, FF. But invalid in IE6.

◎ Width:600px; is 600px; in the size of the picture in all browsers

◎ is more than 600px when picture size, narrow automatically for 600px. Effective in IE6.

◎ Overflow:hThe share that Idden; exceeds is concealed, avoid to control what picture size fails and cause to be maintained be out of shape.

Bookmark:Digg Del.icio.us Reddit

Leave a Comment