简体   繁体   中英

How to hide a Div by flexLayout when max-width is 768px

I want to hide my div when max-width of the page is 768px(Tablet width) but I checked API reference of flexLayout and says that limits are 600,960,1280 and 1980 px.Is there any way I can override these pixel limits to change as 768px?fxHide.gt-sm,hides after 960px but I need to make it 768px for example.

API reference: https://github.com/angular/flex-layout/wiki/Responsive-API

Try this in your CSS file

@media only screen and (max-width: 768px) {
  div {
  display:none;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM