【问题标题】:Are the parent's font faces accessible in an iframe?是否可以在 iframe 中访问父级的字体?
【发布时间】:2014-04-17 23:49:20
【问题描述】:

假设一个页面在样式表中声明了font-face,并包含一个指向另一个域上的页面的 iframe。 iframe 中的页面能否使用父页面中的font-face

【问题讨论】:

    标签: html css iframe cross-domain font-face


    【解决方案1】:

    不,不会。 iframe 页面不会从父页面继承任何 CSS。

    您还需要在 iframe 页面中包含字体的样式表。

    【讨论】:

      猜你喜欢
      • 2021-09-21
      • 2017-11-06
      • 1970-01-01
      • 1970-01-01
      • 2012-11-25
      • 2021-05-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多