【问题标题】:How to show preview of an html document within an ember app如何在 ember 应用程序中显示 html 文档的预览
【发布时间】:2016-12-13 10:24:54
【问题描述】:

如何在 ember 模板中显示 html 文档而不影响 ember 应用的 css 样式?

html 文档有一个 style 标签,与 ember 应用的 css 冲突。

【问题讨论】:

  • 您可以在 ember.js 应用程序中使用 iframe 吗?
  • 不,这会导致更多的复杂性。

标签: ember.js handlebars.js


【解决方案1】:

使用 YUI css reset 获得了解决方法。

href="http://yui.yahooapis.com/3.18.1/build/cssreset-context/cssreset-context-min.css">

<div class="yui3-cssreset"></div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-18
    • 1970-01-01
    • 2017-08-04
    • 1970-01-01
    • 2018-06-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多