2
A
回答
1
我相信Viber會從您的網站上找到第一張照片(背景不包括在內!)。我做了一些測試,發現如果您將圖像放置在HTML頂部的註釋部分 - <!-- <img src='myImg.jpg'/>-->
- 它也會將其作爲源代碼中的第一個圖像文件接受。因此,你可以放任何你喜歡的圖像。
2
您應該使用Open Graph協議。你可以簡單地這個片段添加到您的<head>
頁:
<meta property="og:type" content="website">
<meta property="og:site_name" content="Название сайта">
<meta property="og:title" content="Заголовок">
<meta property="og:description" content="Описание.">
<meta property="og:url" content="http://example.com/page.html">
<meta property="og:locale" content="ru_RU">
<meta property="og:image" content="http://example.com/img.jpg">
<meta property="og:image:width" content="968">
<meta property="og:image:height" content="504">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Заголовок">
<meta name="twitter:description" content="Описание.">
<meta name="twitter:image:src" content="http://example.com/img.jpg">
<meta name="twitter:url" content="http://example.com/page.html">
<meta name="twitter:domain" content="example.com">
<meta name="twitter:site" content="@">
<meta name="twitter:creator" content="@...">
圖片大小應爲968x504px。閱讀更多here
乾杯!
相關問題
- 1. HTML /在HTML頁面中顯示圖像
- 2. 圖像不顯示HTML頁面
- 3. Gif圖像不顯示在html頁面
- 4. 如何在html頁面中顯示肖像圖像
- 5. 如何顯示.html頁面
- 6. 選擇性顯示頁面
- 7. 如何突出顯示html頁面中的gif圖像
- 8. 根據其他頁面上的選擇顯示圖像
- 9. Facebook Like按鈕:如何選擇要顯示的圖像
- 10. 如何防止頁面顯示圖像?
- 11. 從baasbox檢索的圖像javascript,不顯示在html頁面
- 12. 從HTML頁面的模態窗口中顯示圖像
- 13. 用不同圖像名稱的圖像顯示html頁面
- 14. 如何顯示圖像以在html表單上選擇?
- 15. 如何在html頁面中使用數據url顯示圖像
- 16. 如何在HTML頁面中顯示blobstore圖像
- 17. 如何在HTML頁面中使用HTTP標頭顯示圖像?
- 18. 如何僅使用css在html頁面上顯示圖像?
- 19. Jquery如何從URL的其他頁面中選擇圖像
- 20. 顯示圖像中選擇
- 21. 如何使用宏在頁面上顯示umbraco多媒體選擇器圖像
- 22. 它是關係到圖像中的HTML頁面顯示在HTML頁面
- 23. 如何在html頁面顯示html格式的textarea頁面
- 24. 如何將圖像從html頁面傳遞到.aspx頁面?
- 25. 從彈出窗口中選擇圖像並在主頁面中顯示
- 26. 動態更新html頁面上圖像的選擇,選擇單選按鈕
- 27. 如何從url中顯示html頁面中的網頁?
- 28. 顯示html頁面?
- 29. 如何將圖像從node.js服務器顯示到jsp頁面?
- 30. 如何在圖像選擇時顯示圖像
也許是Viber的每個版本都不同,但對我不起作用。 –