【问题标题】:how to make the size of loader big without CSS如何在没有 CSS 的情况下使加载器的大小变大
【发布时间】:2021-05-27 11:16:04
【问题描述】:
  <div class="loader-wrapper ">
      <div class="loader is-loading"></div>
        </div>

Loader image

我想在不添加任何 CSS 的情况下增加加载器的大小!

【问题讨论】:

  • 请编辑问题,不要大写。

标签: html css angular bulma


【解决方案1】:

width="500" height="600">

【讨论】:

    【解决方案2】:

    在组件中

    import {
      Component,
      OnInit,
      ViewChild,
      ElementRef,
      ViewEncapsulation
    } from '@angular/core';
    
    @Component({
      selector: 'app-loading',
      template: `
        <div #loaderWrapper class="loader-wrapper ">
          <div class="loader is-loading"></div>
        </div>
      `,
      encapsulation: ViewEncapsulation.None
    })
    export class CustomComponent implements OnInit {
      @ViewChild('loaderWrapper') loaderWrapper: ElementRef;
    
      ngOnInit() {
        this.loaderWrapper.nativeElement.style.with = 500;
        this.loaderWrapper.nativeElement.style.height = 500;
      }
    }
    
    
    
    

    【讨论】:

      猜你喜欢
      • 2021-02-23
      • 1970-01-01
      • 2013-06-22
      • 2011-08-06
      • 2023-03-13
      • 1970-01-01
      • 2020-08-26
      • 2011-08-28
      • 1970-01-01
      相关资源
      最近更新 更多