簡體   English   中英

如何將表情符號微笑插入 ld+json 中的常見問題微數據?

[英]How I can to insert emoji smile to faq microdata in ld+json?

我有一個ld+json格式的faq微數據:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What should my {{ profession.name|lower }} cover letter contain?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The main purpose of a cover letter is to introduce yourself, mention the job you’re applying for, show that your skills and experience match the needed skills and experience for the job."
      }
    }
  ]
}

我怎樣才能插入這個表情符號微笑📄 name字段以及如何測試它?

只需將其設置為名稱即可。 您可以使用結構化數據測試工具測試您的結構化數據

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What should my {{ profession.name|lower }} cover letter contain? 📄",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The main purpose of a cover letter is to introduce yourself, mention the job you’re applying for, show that your skills and experience match the needed skills and experience for the job."
      }
    }
  ]
}

我可以以某種方式讓所有瀏覽器顯示相同的表情符號嗎?

您不能,因為每個提供商都可以將表情符號顯示為不同的圖像。 表情符號的 unicode 字符將被翻譯成圖像。 您還可以在這個 Unicode 表情符號圖表中看到差異。 表情符號在設備上也可能看起來不同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM