2015-05-14 70 views
4

Linkedin試圖分享時顯示不同的3圖像。這裏是那麼head標籤Linkedin分享時顯示3個不同的圖像

<meta property="og:site_name" content="OkyTalk"> 
<meta property="og:title" content="OkyTalk "> 
<meta property="og:type" content="website"> 
<meta property="og:url" content="https://okytalk.com/teachers/profile/displayProffesional"> 
<meta property="og:image" content="https://okytalk.com/media/okytalk/img/share.jpg"> 
<meta property="og:image:type" content="image/jpeg"> 
<meta property="og:image:width" content="470"> 
<meta property="og:image:height" content="246"> 

enter image description here

任何想法如何只說明了什麼?其他人分享(臉譜,微博,谷歌+)工作正常。

回答

1

LinkedIn正在上升中的img標籤的圖像由於某種原因,與Facebook不同等

的解決方法是改變你共享設置在CSS和改變圖像在頁面上的的img標籤的圖像將img標記爲div。

添加樣式,如:

#howitworksstudent{ 
    background: url(https://okytalk.com/media/okytalk/img/how-it-works-student.png); 
    width: 100%; 
    height: 100%; 
    background-repeat: no-repeat; 
} 

和你的img標籤更改爲:

<div id="howitworksstudent"/> 

不理想,但可以讓你解決問題。我已經測試過這個,並且能夠重新創建你的初始問題,所以我知道它的工作原理。

希望有所幫助。

+0

謝謝它的作品! –

相關問題