ITeye博客

图片尺寸过大时会撑开页面解决方法

chanball · 2010-08-18 14:44 · html · Web前端 · Markdown


/* 防止img过大撑开 */
img{
	max-width:1002px;/* Other */
	_width:expression((this.offsetWidth > 1002) ? "1002px" : this.offsetWidth+"px" );/* IE */
}

评论(0)

暂无评论。

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