国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Web Front-end HTML Tutorial Solve the problem that phpcms images are too large and break the table image. Adaptive images are scaled down_html/css_WEB-ITnose

Solve the problem that phpcms images are too large and break the table image. Adaptive images are scaled down_html/css_WEB-ITnose

Jun 24, 2016 am 11:39 AM

css code:

img,a img{ border:0; margin:0; padding:0; max-width:590px; width:expression(this.width590?590px :this.width); max-height:590px; height:expression(this.height590?590px:this.height); } The above code will cause 2 problems! 1. It will make the picture very

img,a img{
border:0;
margin:0;
padding:0;
max-width:590px;
width:expression(this.width>590?"590px":this.width);
max-height:590px;
height:expression(this.height>590?"590px":this.height );
}

The above code will cause 2 problems!
1. It will make the picture very small. It needs to be refreshed once to display properly!
2. The picture will not be reduced in proportion, and the picture will be seriously deformed!
Modify as follows: