Home > Web Front-end > HTML Tutorial > Solve the problem of phpcms image being too large and breaking the table image adaptive image scaling down

Solve the problem of phpcms image being too large and breaking the table image adaptive image scaling down

WBOY
Release: 2016-10-18 08:42:01
Original
1319 people have browsed it
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 css code will cause 2 problems! 1. It will make the picture look 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 severely deformed!
Modify as follows:







Put the above code between the
of the web page template.
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template