Home > Web Front-end > CSS Tutorial > Code to use CSS to control image display size_Experience exchange

Code to use CSS to control image display size_Experience exchange

WBOY
Release: 2016-05-16 12:05:33
Original
1511 people have browsed it
复制代码 代码如下:

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

  
Related labels:
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