html - 我可以在自定义的 Azure AD B2C 用户界面中使用 SVG 吗?

标签 html azure svg azure-active-directory azure-ad-b2c

我正在构建一个定制的Azure AD B2C user interface .

我在我的页面中包含了 SVG 标签。

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <svg width="100" height="100">
                    <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
                </svg>

                <div id="api"/></div>
            </div>
        </div>
    </div>    
</body>

如果我直接访问该页面,SVG 标签将按预期呈现。如果我访问 Azure AD B2C 流程中的页面,则 SVG 标记将被省略。

自定义的 Azure AD B2C 用户界面是否支持 SVG?

最佳答案

不,不幸的是不支持。请参阅此屏幕截图中允许的标签:

allowed tags screenshot

<小时/>

用户声音:Stop Blocking Custom HTML Elements and Attributes | Add Angular SSR Support

关于html - 我可以在自定义的 Azure AD B2C 用户界面中使用 SVG 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50628190/

相关文章:

Azure Active Directory 组和组成员限制

css - Chrome 和 Opera 中的 SVG 过渡问题

javascript - mouseup 事件并不总是被触发

javascript - 将 HTML div 内容转换为 json 对象

javascript - context.drawImage 是如何工作的

Azure Function - 时间触发函数状态

azure - 如何从 Azure Function 调用 protected API

html - 如何提高 svg 模糊性能(在 Safari 中)?

html - 用户滚动时向下滚动的图像/ Logo ?

javascript - 修复源代码中损坏的链接