大家好,我对 angularJS html 渲染有一点问题。问题是当我使用时ng-bind-html-unsafe
,布局看起来完全错误。但是,我只是将鼠标悬停在该区域周围,一切都移动到正确的位置。所以不知何故,我猜它与 angularJS 自定义属性有关,因为没有ng-bind-html-unsafe
.
<li><a href="#!/static/faq"
ng-bind-html-unsafe="locale['static-faq']"></a></li>
<li><a href="#!/static/privacy-policy"
ng-bind-html-unsafe="locale['static-privacy-policy']"></a></li>
<li><a href="#!/static/terms"
ng-bind-html-unsafe="locale['static-terms']"></a></li>
<li><a href="#!/static/contact"
ng-bind-html-unsafe="locale['static-contact']"></a></li>
<li><a href="#!/static/team"
ng-bind-html-unsafe="locale['static-team']"></a></li>