*ngIf hide some content on mobile screen, Angular 4

后端 未结 9 2178
盖世英雄少女心
盖世英雄少女心 2020-12-13 04:47

I have:

showHide: false;

Content
9条回答
  •  情话喂你
    2020-12-13 05:04

    This is another method that will continue to look for window changes.

    @media screen and (max-width: 490px) {
      .logo{
        width: 30vh;
      }
    }
    @media screen and (min-width: 491px) {
      .logo{
        display: none;
      }
    }
    

提交回复
热议问题