📄 web2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<h1>current date and time</h1>
<p>
<script language="JavaScript">
now=new Date();
localtime=now.toString();
utctime=now.toGMTString();
document.write(localtime);
document.write(utctime);
hour=now.getHours();
min=now.getMinutes();
sec=now.getSeconds();
document.write("<h1>")
document.write(hour+":"+min+":"+sec);
</script></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -