验证码: 看不清楚,换一张 查询 注册会员,免验证
  • {{ basic.site_slogan }}
  • 打开微信扫一扫,
    您还可以在这里找到我们哟

    关注我们

网页中img图片怎么使用css实现等比例自动缩放不变形

阅读:941 来源:乙速云 作者:代码code

网页中img图片怎么使用css实现等比例自动缩放不变形

代码如下:






等比例不变形

	.pic li{width: 150px; height: 80px; float: left; list-style: none; margin: 10px; border: 1px solid #d8d8d8; padding: 5px; text-align: center;}
	.pic img{width: auto; height: auto; max-width: 100%; max-height: 100%;
	}  



	
		
  • 分享到:
    *特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: hlamps#outlook.com (#换成@)。
    相关文章
    {{ v.title }}
    {{ v.description||(cleanHtml(v.content)).substr(0,100)+'···' }}
    你可能感兴趣
    推荐阅读 更多>