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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 12:05:331559browse
复制代码 代码如下:

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);     

  
Statement:
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