:fullscreen
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
CSS :fullscreen ìì¬ í´ëì¤ë ì ì²´ íë©´ 모ëì ì§ì
í 모ë ììì ì¼ì¹í©ëë¤. ë¤ìì ììê° ì ì²´ íë©´ ì¤ì´ë¼ë©´ ê·¸ ìì 모ë ì íí©ëë¤.
구문
Error: could not find syntax for this itemì¬ì© ì°¸ê³
:fullscreen ìì¬ í´ëì¤ë ììê° ì ì²´ íë©´ê³¼ ì¼ë°ì ì¸ ëª¨ìµì ëëë¤ ëë§ë¤ í¬ê¸°, ì¤íì¼, ë ì´ìì ë±ì ì¡°ì íëë¡ ì¤íì¼ìí¸ë¥¼ ì¤ì í ì ììµëë¤.
ìì
ì´ë² ìì ììë 문ìì ì ì²´ íë©´ ì¬ë¶ì ë°ë¼ ë²í¼ì ìì ë³ê²½í©ëë¤. ì¤íì¼ ë³ê²½ì JavaScript ìì´ CSSììë§ ì²ë¦¬í©ëë¤.
HTML
íì´ì§ì HTML 구조ë ë¤ìê³¼ ê°ìµëë¤.
<h1>MDN Web Docs Demo: :fullscreen pseudo-class</h1>
<p>
This demo uses the <code>:fullscreen</code> pseudo-class to automatically
change the style of a button used to toggle full-screen mode on and off,
entirely using CSS.
</p>
<button id="fs-toggle">Toggle Fullscreen</button>
IDê° "fs-toggle"ì¸ <button>ì 문ìê° ì ì²´ íë©´ì´ë©´ í릿í 빨ê°, ê·¸ë ì§ ìì¼ë©´ í릿í ì´ë¡ì¼ë¡ ìì´ ë°ëëë¤.
CSS
ì¤íì¼ ë§ë²ì CSSìì ì¼ì´ë©ëë¤. ë ê°ì§ ê·ì¹ì ì¬ì©í ê²ì¼ë¡, 첫 ë²ì§¸ë ì ì²´ íë©´ì´ ìë ë ì ì²´ íë©´ ë²í¼ì ë°°ê²½ìì ì¤ì í©ëë¤. ì¤ìí ê²ì :not(:fullscreen)ì¼ë¡, :fullscreen ìì¬ í´ëì¤ì ì¼ì¹íì§ ìë ìì를 ì íí©ëë¤.
#fs-toggle:not(:fullscreen) {
background-color: #afa;
}
문ìê° ì ì²´ íë©´ì ë¤ì´ê° ê²½ì°, ëì ìëì CSS를 ì ì©íì¬ ë²í¼ ë°°ê²½ì í릿í 빨ê°ì¼ë¡ ë°ê¿ëë¤.
#fs-toggle:fullscreen {
background-color: #faa;
}
ëª ì¸
| Specification |
|---|
| Selectors Level 4 > # selectordef-fullscreen > |
| Fullscreen API > # css-pc-fullscreen > |