Quasar在document.body上附加了一些非常有用的帮助CSS类,您可以利用:
| 名称 | 描述 |
|---|---|
| body–dark | 在黑暗模式下 |
| body–light | 不处于黑暗模式时 |
| desktop | 客户端在桌面上时 |
| mobile | 客户端在移动设备上时 |
| touch | 当客户有触摸支持时 |
| no-touch | 如果客户没有触摸支持 |
| platform-android | 当客户端在Android设备上时 |
| platform-ios | 客户端在iOS设备上时 |
| native-mobile | 当客户使用Cordova或Capacitor应用程序时 |
| electron | 当客户端在Electron应用程序上 |
| bex | 通过浏览器扩展程序运行应用程序时 |
| within-iframe | 当应用程序从iframe运行时 |
screen--* |
如果启用(只),讲述了当前窗口断点(screen--xs,screen--sm,…, screen--xl)(类星体V1.5.3 +) |
