Browse Source

[完善]iframe高度

beijing
邵佳豪 2 years ago
parent
commit
33cd6370c5
  1. 4
      proxy.config.json
  2. 2
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html
  3. 3
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss

4
proxy.config.json

@ -1,6 +1,6 @@
{
"/api": {
"target": "http://121.36.37.70:8906/",
"target": "https://znaq.sinochemoilmarketing.com/",
"测试1": "http://121.36.37.70:8906/",
"测试2": "https://znaq.sinochemoilmarketing.com/",
"测试3": "https://gas.anxincloud.cn/",
@ -8,7 +8,7 @@
"changeOrigin": true
},
"/signalr": {
"target": "http://121.36.37.70:8906/",
"target": "https://znaq.sinochemoilmarketing.com/",
"secure": false,
"ws": true,
"logLevel": "debug"

2
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.html

@ -40,7 +40,7 @@
[ngStyle]="{'width': canvasWidth + 'px','height': canvasHeight + 'px'}" id="canvas"></canvas>
</ng-container>
<ng-template #elseTemplate2>
<iframe width="100%" height="100%" [src]="fileUrl" frameborder="0"></iframe>
<iframe style="margin-bottom: 12px;" width="100%" height="100%" [src]="fileUrl" frameborder="0"></iframe>
</ng-template>
</ng-container>
<ng-template #elseTemplate>

3
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss

@ -94,7 +94,8 @@
align-items: center;
justify-content: center;
flex-direction: column;
height: 550px;
min-height: 550px;
max-height: 550px;
.imgbox {
flex: 1;

Loading…
Cancel
Save