我是 html 新手。当我按下 alt 和 space 键时,我可以让我网页中的特定 div 全屏显示吗?这是我的代码。
<!DOCTYPE html>
<html>
<body>
<p>This is some text.</p>
<div style="color:#0000FF">
<img src="./1.jpg" height="42" width="42">
</div>
</body>
</html>
最佳答案
使用全屏
伪类(用于webkit和mozila):
:-webkit-full-screen {
/* css rules for full screen */
}
:-moz-full-screen {
/* css rules for full screen */
}
关于html - div 全屏显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18481901/