<!--指定卡片类型--> <metaname="twitter:card"content="summary" /> <!--可选:站点的twitter账号--> <metaname="twitter:site"content="@nytimesbits" /> <!--可选:作者的twitter账号--> <metaname="twitter:creator"content="@nickbilton" /> <!--文章URL--> <metaproperty="og:url"content="http://bits.blogs.nytimes.com/2011/12/08/a-twitter-for-my-sister/" /> <!--文章标题--> <metaproperty="og:title"content="A Twitter for My Sister" /> <!--文章摘要--> <metaproperty="og:description"content="In the early days, Twitter grew so quickly that it was almost impossible to add new features because engineers spent their time trying to keep the rocket ship from stalling." /> <!--文章配图--> <metaproperty="og:image"content="http://graphics8.nytimes.com/images/2011/12/08/technology/bits-newtwitter/bits-newtwitter-tmagArticle.jpg" />
事实上下面这些og:开头的标签,使用Twitter专属的标签也可以生效。
1 2 3
<metaname="twitter:title"content="In the early days, Twitter grew so quickly that it was almost impossible to add new features because engineers spent their time trying to keep the rocket ship from stalling." /> <metaname="twitter:description"content="In the early days, Twitter grew so quickly that it was almost impossible to add new features because engineers spent their time trying to keep the rocket ship from stalling." /> <metaname="twitter:image:src"content="http://graphics8.nytimes.com/images/2011/12/08/technology/bits-newtwitter/bits-newtwitter-tmagArticle.jpg" />