之前分享到微信总是很空白,所以需要稍稍改善一下,预览效果如下:
下面的代码我是放在头部文件的(适合各种网站):
<meta itemprop="image" content="/logo.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/logo.png">
<meta property="og:image" content="你的站点域名/logo.png">
<meta property="og:description" content="你的站点简介" />
<link rel="shortcut icon" href="/logo.png" />
<link rel="icon" sizes="32x32" href="/logo.png">
<link rel="Bookmark" href="/logo.png" />
Xiuno BBS用户复制如下代码:或者下载附件上传到hook
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta itemprop="image" content="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png" />
<link rel="apple-touch-icon" sizes="180x180" href="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png">
<meta property="og:image" content="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png">
<meta property="og:description" content="<?php echo $conf['sitebrief'];?>" />
<link rel="shortcut icon" href="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png" />
<link rel="icon" sizes="32x32" href="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png">
<link rel="Bookmark" href="https://<?php echo $_SERVER['HTTP_HOST'];?>/view/img/logo.png" />
复制代码免费 下载请上缴灵石奥!
⎛⎝菜鸟部落⎠⎞ - 支付
本帖含有隐藏内容,请您向作者支付 5灵石 后再查看
本帖含有隐藏内容,请您向作者支付 5灵石 后再查看
暂无评论