css 怎样令图片能适应不同手机屏幕屏幕大小!要怎么处理?
我的代码,我目前没改到框架原来的 CSS,我试试
<div class="list">
<div class="item">
<ion-slide-box>
<ion-slide ng-repeat="picture in product.pictures">
<div class="slide-box">
<img src="{{picture.image.url}}?500x500" style="width:100%;height:auto;">
</div>
</ion-slide>
</ion-slide-box>
</div>
</div>
@Martin91 调试就用浏览器来调试,这是这个框架的样式,我去掉div class="slide-box"
这个 div,图片就会不显示了!
/**
* Slide Box
* --------------------------------------------------
*/
.slider {
position: relative;
visibility: hidden;
overflow: hidden; }
.slider-slides {
position: relative;
height: 100%; }
.slider-slide {
position: relative;
display: block;
float: left;
width: 100%;
height: 100%;
vertical-align: top; }
.slider-slide-image > img {
width: 100%; }