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

Outlook Add-In: The UI is different for web and Windows Desktop app

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

  1. 有些 UI 不一致。

Here is a radio button on the web

Here is the same button on the desktop app

在HTML中是跨度文本。该数字通过变量动态更新。

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

    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/