Skip to content

Commit de45793

Browse files
committed
Update index.html
1 parent de1d370 commit de45793

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

index.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,33 @@
44
<html lang="zh-CN">
55
<head>
66
<meta charset="UTF-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="renderer" content="webkit">
9+
<meta name="force-rendering" content="webkit">
10+
<meta name="viewport" content="width=device-width, initial-scale=1">
11+
<meta name="author" content="红蓝灯">
12+
<meta name="keywords" content="红蓝灯, RBL">
13+
<script>
14+
function isIE() {
15+
return !!document.documentMode;
16+
}
17+
if (isIE()) {
18+
window.alert("检测到为IE浏览器,即将跳转到Edge下载界面...");
19+
console.warn("用户使用IE浏览器");
20+
location.href("https://www.microsoft.com/zh-cn/edge/download");
21+
} else {
22+
console.info("用户使用非IE浏览器");
23+
}
24+
</script>
25+
<meta name="author" content="这里是红蓝灯的个人网站,时不时发点文章">
726
<title>首页 - 红蓝灯的个人网站</title>
827
<script src="include/prism.js"></script>
928
<link href="include/prism.css" rel="stylesheet">
1029
</head>
1130
<body class="line-numbers">
1231
<p class="chinese">警告!本网站处于测试阶段!</p>
1332
<p class="english">Warning! Page is test!</p>
33+
<script>window.alert("TEST!")</script>
1434
<pre><code class="language-python">print("hi")
1535
import tkinter</code></pre>
1636
<style>
@@ -35,7 +55,7 @@
3555
.english {
3656
font-family: "JetBrains Mono",system-ui;
3757
}
38-
.code {
58+
code {
3959
font-family: "JetBrains Mono",system-ui;
4060
}
4161
</style>

0 commit comments

Comments
 (0)