Why does the width and height of Echart's canvas take effect only through interline style or JavaScript operation definition?

clipboard.png
.chart {

    position: absolute;
    top: 69px;
    right: 20px;
    width: 100px !important;
    height:100px !important;
    line-height: 100px;
  }
  
  
Sep.20,2021


jsdocument.defaultView.computedStyle(ele, null)canvas



clipboard.png
@jacktown
clipboard.png

clipboard.png
JS

clipboard.png

clipboard.png

Menu