ITeye博客

css完美解决图片太大撑破表格 自适应图片按比例缩小

cometlj · 2011-10-29 00:46 · 技术文章 · Web前端 · Markdown

<style type="text/css"> 
<!-- 
img,a img{ 
border:0;  
margin:0;  
padding:0; 
max-width:650px; 
width: expression(this.width > 650 && this.width > this.height ? 650px : 'auto';);  
max-height:1650px; 
height: expresion(this.height > 1650 ? 1650px : 'auto';); 
} --> 
</style>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。