From 6fa44ce8a9fbb9fbc41dac402fa8ff483ea3e835 Mon Sep 17 00:00:00 2001 From: moqimoqidea <39821951+moqimoqidea@users.noreply.github.com> Date: Sun, 13 Mar 2022 15:19:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20typo:=20=E5=9B=A0=E4=B8=BA=E5=8D=B3?= =?UTF-8?q?=E4=BD=BF=20->=20=E5=9B=A0=E4=B8=BA=E5=A6=82=E6=9E=9C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9A=84=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2-ui/1-document/08-styles-and-classes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/08-styles-and-classes/article.md b/2-ui/1-document/08-styles-and-classes/article.md index 925b9469fd..d9e518adc0 100644 --- a/2-ui/1-document/08-styles-and-classes/article.md +++ b/2-ui/1-document/08-styles-and-classes/article.md @@ -280,7 +280,7 @@ pseudo ```smart header="应用于 `:visited` 链接的样式被隐藏了!" 可以使用 CSS 伪类 `:visited` 对被访问过的链接进行着色。 -但 `getComputedStyle` 没有给出访问该颜色的方式,因为否则,任意页面都可以通过在页面上创建它,并通过检查样式来确定用户是否访问了某链接。 +但 `getComputedStyle` 没有给出访问该颜色的方式,因为如果可以的话,任意页面都可以通过在页面上创建它,并通过检查样式来确定用户是否访问了某链接。 JavaScript 看不到 `:visited` 所应用的样式。此外,CSS 中也有一个限制,即禁止在 `:visited` 中应用更改几何形状的样式。这是为了确保一个不好的页面无法测试链接是否被访问,进而窥探隐私。 ``` From 404706b08a2017478d1bc14c29d98b68d62d3115 Mon Sep 17 00:00:00 2001 From: moqimoqidea <39821951+moqimoqidea@users.noreply.github.com> Date: Sun, 13 Mar 2022 17:05:49 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Songhn --- 2-ui/1-document/08-styles-and-classes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/08-styles-and-classes/article.md b/2-ui/1-document/08-styles-and-classes/article.md index d9e518adc0..aa3604002d 100644 --- a/2-ui/1-document/08-styles-and-classes/article.md +++ b/2-ui/1-document/08-styles-and-classes/article.md @@ -280,7 +280,7 @@ pseudo ```smart header="应用于 `:visited` 链接的样式被隐藏了!" 可以使用 CSS 伪类 `:visited` 对被访问过的链接进行着色。 -但 `getComputedStyle` 没有给出访问该颜色的方式,因为如果可以的话,任意页面都可以通过在页面上创建它,并通过检查样式来确定用户是否访问了某链接。 +但 `getComputedStyle` 没有给出访问该颜色的方式,因为如果允许的话,任意页面都可以通过在页面上创建它,并通过检查样式来确定用户是否访问了某链接。 JavaScript 看不到 `:visited` 所应用的样式。此外,CSS 中也有一个限制,即禁止在 `:visited` 中应用更改几何形状的样式。这是为了确保一个不好的页面无法测试链接是否被访问,进而窥探隐私。 ```