抖音卡片是如何生成的?其实抖音是直接抓取html页面的一些信息来生成封面图、主标题、副标题的\
代码:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, viewport-fit=cover" /> <link rel="shortcut icon" type="image/x-icon" href="这是封面图URL" /> <meta name="description" content="这是副标题" /> <title>这是主标题</title> <meta property="og:title" content="这是主标题" /> <meta property="og:description" content="这是副标题" /> <meta property="og:url" content="跳转链接" /> <meta property="og:image" content="这是封面图URL" /> </head> <body> <h1>抖音卡片演示</h1> </body> </html>
生成卡片才是核心,其它都是curd罢了!
版权说明
文章采用: 《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权。版权声明:本站资源来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系客服并出示版权证明以便删除!