如何在Nativescript Angular App中基于设备宽度提供不同的CSS文件

问题描述 投票:0回答:1

我正在尝试使用NativeScript-Platform-CSS,NativeScript FontScale插件,但不支持这些插件,nativescript angualr有什么办法吗?

css angular nativescript platform
1个回答
0
投票

这可以作为:-

@media screen and (max-width: 1024px){

@import url('assets/css/myStyle.css');

}
@media screen and (max-width: 768px){

@import url('assets/css/myStyle2.css');

}
© www.soinside.com 2019 - 2024. All rights reserved.