为什么“cursor”的“auto”值给我的锚点一个类似文本的光标
Why the “auto” value of “cursor” gives my anchor a text-like cursor
auto
值的文档说
The UA will determine the cursor to display based on the current context. E.g., equivalent to text when hovering text.
a {
cursor: auto;
}
<a href="https://www.example.com">hover your mouse over me</a>
为什么上面的样式-sheet 给了我一个 link 的工字梁?我期待一个类似于 pointer
的光标,因为那是一个锚标记,对吗?
该描述基于 CSS 级别 2 修订版 1 (a.k.a。CSS 2.1)。在CSS Basic User Interface Module Level 3(a.k.a.CSS3UI)中描述变成:
The UA determines the cursor to display based on the current context, specifically: auto
behaves as text
over selectable text or editable elements, and default
otherwise.
这更明确。请注意 CSS3 UI 已经是 推荐 (网络行业中“标准”的术语)。
auto
值的文档说
The UA will determine the cursor to display based on the current context. E.g., equivalent to text when hovering text.
a {
cursor: auto;
}
<a href="https://www.example.com">hover your mouse over me</a>
为什么上面的样式-sheet 给了我一个 link 的工字梁?我期待一个类似于 pointer
的光标,因为那是一个锚标记,对吗?
该描述基于 CSS 级别 2 修订版 1 (a.k.a。CSS 2.1)。在CSS Basic User Interface Module Level 3(a.k.a.CSS3UI)中描述变成:
The UA determines the cursor to display based on the current context, specifically:
auto
behaves astext
over selectable text or editable elements, anddefault
otherwise.
这更明确。请注意 CSS3 UI 已经是 推荐 (网络行业中“标准”的术语)。