如何制作高度相同的离子幻灯片图像?

时间:2018-09-18 16:12:34

标签: angular typescript ionic3

我尝试在ionic 3中制作正方形分量幻灯片,但是有2张图像比其余的要大。如何使它们都具有相同的高度?

<ion-slides *ngIf="ads && ads.length" autoplay="500" loop="true" speed="300">
  <ion-slide   *ngFor="let ad of ads">
    <img src="{{ad.img}}" />
  </ion-slide>
</ion-slides>

This is the "normal size"

this one is too big and i need to make it smaller

1 个答案:

答案 0 :(得分:2)

您可以为img标签创建一个类,并根据需要设置高度的像素,还可以添加 def move_scrap(self, cr, uid, ids, context=None): if context is None: context = {} ctx = context.copy() ctx['allow_scrap'] = True super(stock_move_scrap,self).move_scrap(cr, uid, [], context=ctx) 以确保图像不中断

相关问题