我有一个投资组合页面,带有缩放图像显示.我有这个代码:http://codepen.io/Mpleandro/pen/LvrqJ
显示图像的div有一个类.display,在HTML的第13行和这个div isline 90的css格式.
.display
图像宽度将是灵活的,所以我想要的是使包含div继承图像的宽度.
我试过CSS属性auto,inherit和min-with,但没有任何工程!
auto
inherit
min-with
有人能帮助我吗?
PS:我需要一个响应式解决方案.
谢谢
css inheritance image responsive-design
css ×1
image ×1
inheritance ×1
responsive-design ×1