【问题标题】:Are there any restrictions for using HTML tags in "html" field?在“html”字段中使用 HTML 标签是否有任何限制?
【发布时间】:2013-04-16 19:49:18
【问题描述】:

根据https://developers.google.com/glass/v1/reference/timeline#html 可以使用 HTML。

在“html”字段中使用 HTML 标签有什么限制吗?

【问题讨论】:

  • 我认为需要更多的解释。

标签: google-mirror-api


【解决方案1】:

我们将很快更新有关此的文档,但与此同时,以下是限制:

  • 允许的 HTML 元素:在您的时间线卡片中使用这些元素。
    • 标题:h1h2h3h4h5h6
    • 图片:img
    • 列表:liolul
    • HTML5 语义:articleasidedetailsfigurefigcaption, footer, header, nav, section, summary, time
    • 结构:blockquotebrdivhrpspan
    • 风格:b,big,center,em,i,u,s,small,strike, strong, style, sub, sup
    • 表:tabletbodytdtfootththeadtr
  • 阻止的 HTML 元素: 这些元素及其内容已从 html 有效载荷。
    • 文档标题:headtitle
    • 嵌入:audioembedobjectsourcevideo
    • 帧:frameframeset
    • 脚本:applet, script
  • 其他元素:上面未列出的所有元素都将被删除,但它们的 内容被保留。

【讨论】:

  • <iframe> 呢?
  • 这些标签的哪些属性是允许的?例如imgonload 属性。锚标签是如何处理的?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-08-28
  • 2012-05-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-02
相关资源
最近更新 更多