Outlook 加载项:Web 和 Windows 桌面应用程序的 UI 不同

问题描述

我使用 Angular 8 创建了一个加载项,它在网络浏览器中运行良好,但在桌面应用程序中运行良好。我面临两个问题:

  1. 存在一些 UI 不一致。

Here is a radio button on the web

Here is the same button on the desktop app

在 HTML 中,它是一个跨度文本。数字通过变量动态更新。

  1. 无 UI 加载项在桌面应用程序上间歇性停止工作。我检查了日志,发现了这个:

    23-12-2020 12:58:45     Monitorable     Manifest        Skipped unrecognized XML element for add-in ID : f7bad2f3-c4ca-492d-93cd-7828d5bd458f,Location : Element Namespace "http://schemas.microsoft.com/office/mailappversionoverrides" : Element Name "Tooltip",Line=70,CharPosition=20
    
    
    23-12-2020 12:58:45     Monitorable     Manifest        Skipped unrecognized XML element for add-in ID : f7bad2f3-c4ca-492d-93cd-7828d5bd458f,Location : Element Namespace "http://schemas.microsoft.com/office/mailappversionoverrides/1.1" : Element Name "Tooltip",Line=183,CharPosition=22
    

项目中的清单是通过 Yeoman 工具验证的,所以我很困惑为什么会发生这种情况。

解决方法

添加以下元标记

meta name="format-detection" content="telephone=no"

头部部分对我有用。更详细的答案可以在这里找到: https://www.howtosolutions.net/2016/10/microsoft-edge-disabling-phone-number-detection-problem/