HideWhen

HideWhen用来设置某个平台或者某个屏幕方向时显示的元素。

  1. <div hideWhen="android">
  2. I am hidden on Android!
  3. </div>
  4. <div hideWhen="ios">
  5. I am hidden on iOS!
  6. </div>
  7. <div hideWhen="android,ios">
  8. I am hidden on Android and iOS!
  9. </div>
  10. <div hideWhen="portrait">
  11. I am hidden on Portrait!
  12. </div>
  13. <div hideWhen="landscape">
  14. I am hidden on Landscape!
  15. </div>