Detecting if a browser is in full screen mode

后端 未结 17 1864
误落风尘
误落风尘 2020-11-27 06:10

Is there any way of reliably detecting if a browser is running in full screen mode? I\'m pretty sure there isn\'t any browser API I can query, but has anyone worked it out b

17条回答
  •  爱一瞬间的悲伤
    2020-11-27 06:37

    Opera treats full screen as a different CSS media type. They call it Opera Show, and you can control it yourself easily:

    @media projection {
      /* these rules only apply in full screen mode */
    }
    

    Combined with Opera@USB, I've personally found it extremely handy.

提交回复
热议问题