我正在构建一个定制的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?
最佳答案
不,不幸的是不支持。请参阅此屏幕截图中允许的标签:
<小时/>用户声音:Stop Blocking Custom HTML Elements and Attributes | Add Angular SSR Support
关于html - 我可以在自定义的 Azure AD B2C 用户界面中使用 SVG 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50628190/