页面样式 窗口大小

 
<ul [ngStyle]="{'width': widths? widths + 'px': widths + 'px'}"></ul>

    import * as $ from 'jquery';
    this.widths = $('.search').width() - 89;
-----------------------------------------------------------------------------------------------
    $(".tabPanes").attr("height","300px");
-----------------------------------------------------------------------------------------------
    this.setState({clientHeight: document.body.clientHeight-120})
-----------------------------------------------------------------------------------------------
        style={{
          height:
            this.state.contentWidth < 1366
              ? // ? "632px"
                "auto"
              : this.state.contentHeight - 70
        }}

  

 

posted on 2020-03-31 14:37  左侧岚  阅读(83)  评论(0)    收藏  举报

导航