Seayon
V2EX  ›  问与答

浏览器的 Web Notifications API,为什么 Windows 和 macOS 的禁止允许按钮位置是反的?

  •  
  •   Seayon · May 17, 2023 · 926 views
    This topic created in 1182 days ago, the information mentioned may be changed or developed.
    macOS:





    Windows:



    ChatGPT:
    关于您提到的 macOS 和 Windows 上 Chrome 弹窗按钮位置不同的问题,这可能是因为不同的操作系统有不同的设计规范和用户体验习惯。比如在 macOS 中,按照苹果的人机界面指南,确认或者批准操作的按钮通常放在对话框的右边,而取消或者否定操作的按钮放在左边。而在 Windows 中,习惯上确认或批准操作的按钮放在左边,否定或取消操作的按钮放在右边。这可能是为了让用户在各自的操作系统中获得一致和符合习惯的体验。

    在公司上班用的 macOS ,到家里是 Windows ,我还以为是开发者可以自定义的左右,故意变着骗用户点击的,我就说我怎么一直记不住,都快人格分裂了。
    最近去看了下 浏览器文档 Api 发现好像没有这个参数,对比了下发现好像是两个系统不一样...
    2 replies    2023-05-17 21:35:01 +08:00
    dingwen07
        1
    dingwen07  
       May 17, 2023   ❤️ 1
    Seayon
        2
    Seayon  
    OP
       May 17, 2023
    @dingwen07 原来如此,明白了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3579 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:28 · PVG 18:28 · LAX 03:28 · JFK 06:28
    ♥ Do have faith in what you're doing.