如何在引导程序上调整图像大小

时间:2019-06-12 01:23:20

标签: angular-ui-bootstrap image-resizing

我使用以下代码显示图像,并且可以通过鼠标调整图像的大小,当图像太大时,我使用div显示滚动条,我不想使用固定宽度(1603px),高度(896px),我该怎么办?

<div class="col-md-12" >
    <div id="imgdiv" style="overflow-y:auto; overflow-x:auto; width:1603px; height:896px;" >
        <img id="img" *ngIf="witnessPhoto.photoBase64" src= "{{witnessPhoto.photoBase64}}" (mousewheel)="OnMouseWheel($event)" style="cursor:crosshair" />
    </div>
</div>

0 个答案:

没有答案