---
title: "css控制图片大小"
author: "harbey"
date: "2009-12-31T11:18:34Z"
tags: []
categories: ["Web前端"]
slug: "css"
draft: false
lastmod: "2009-12-31T11:18:34Z"
id: 560309
url: "https://harbey.iteye.com/blog/560309"
---

<style type="text/css">
.imgcontrol {
	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);
}
</style>