ShowWhen

用来表示某平台或者某屏幕方向时时显示该元素。

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