On my website I would like to display images uploaded by user in a new window with a specific size (width: 600px). The problem is that the images may be big. So
width: 600px
Your css is almost correct. You are just missing display: block; in image css. Also one typo in your id. It should be img.Image { max-width: 100%; display: block; } div#ImageContainer { width: 600px; } 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
display: block;
img.Image { max-width: 100%; display: block; } div#ImageContainer { width: 600px; } 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
img.Image { max-width: 100%; display: block; } div#ImageContainer { width: 600px; }