【发布时间】:2014-04-06 22:07:44
【问题描述】:
我无法正确裁剪滑块图像。
这是我图片的内联样式:
<img width="250" height="169" alt="Photo: Terrence Jones for Social Magazine Stylist: Lee Stalcup" src="http://revolverboutique.com/wp-content/uploads/2013/02/R8-278200_600x400.jpg" style="display: inline-block; width: 250px; height: 169px;">
这也是我在 div 中的样式表 css:
#featured .slide img {
height: 100%;
overflow: hidden;
width: 100%;
}
【问题讨论】:
-
在您的样式表中将
height设置为auto -
做了高度:自动;但没有修复@OneKitten
-
你是说@PieterGoosen?我不建议使用
height: auto;。 -
这是我的网站link 我遇到问题的地方。解决这个问题是当务之急。 @OneKitten