PureCss响应式图像 [英] PureCss Responsive Images

查看:44
本文介绍了PureCss响应式图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是尝试使用purecss来做我的第一页,此刻我一直停留在使用pure-img获取响应图像,当我缩小屏幕但是当屏幕变大并且图片应该从原始尺寸增加,它们只是保持原始尺寸不变.

I am just trying to do my first page using purecss, what I am stuck at the moment is in using pure-img for having responsive images, the image are responsive when I reduce the screen but when the screen become bigger and the image are supposed to increase from their original dimension they just stay static in their original size.

能帮我一下吗:)

推荐答案

尝试:

img {
  max-width: 100%;
  height: auto;
}

这篇关于PureCss响应式图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆