[英]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.当页面的最大宽度为 768 像素(平板电脑宽度)时,我想隐藏我的 div,但我检查了 flexLayout 的 API 参考并说限制是 600,960,1280 和 1980 像素。有什么办法可以覆盖这些像素限制以进行更改作为 768px?fxHide.gt-sm,隐藏在 960px 之后,但我需要将其设为 768px。
API reference: https://github.com/angular/flex-layout/wiki/Responsive-API API 参考: https://github.com/angular/flex-layout/wiki/Responsive-API
Try this in your CSS file在你的 CSS 文件中试试这个
@media only screen and (max-width: 768px) {
div {
display:none;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.