考虑什么点击?

发布于 2024-12-26 13:28:50 字数 1459 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然#的苍凉 2025-01-02 13:28:50

如果您在各种程序中尝试按钮,您可能会发现当您按下然后释放其中的鼠标时,该按钮会触发。

更具体地说,当您按下鼠标时,按钮会切换到“按下”的外观,但如果将鼠标拖动到按钮之外,按钮会恢复到其正常外观,然后释放鼠标没有任何效果。当您将鼠标悬停在按钮上时,该按钮可能还处于另一种状态。

对于习惯了现代界面的用户,您确实需要提供所有这三种状态 - 正常、悬停和按下 - 以便为他们提供他们期望的可按下项目的反馈。

If you experiment with buttons in various programs, you'll probably find that the button triggers when you press and then release the mouse within it.

More specifically, when you press the mouse, the button switches to a "pressed" appearance, but if you drag the mouse outside the button, the button reverts to its normal appearance, and releasing the mouse then has no effect. There is probably also another state that the button is in when you hover the mouse over it.

For a user accustomed to modern interfaces, you really need to provide all three of these states - normal, hover, and press - in order to give them the feedback they expect for a pressable item.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文