html修改网站图标,分享内容,分享图标等

  • 修改网站图标
<link rel="icon" href="test.ico" >

部分浏览器还支持gif作为图标,GIF尺寸不能太大,建议16x16,列如:火狐浏览器

<link rel="icon" href="test_ico.gif" type="image/gif" >

注意:如果网站语言使用的是XHTML必须要在>后面加上‘/’。因为XHTML语法要比HTML更加严谨!

<link rel="icon" href="test.ico" />
  • 修改网站介绍
<meta data-n-head="true" data-hid="description" name="description" content="网站介绍">
  • 修改分享图标
<meta property="og:image" content="./images/risk.png" />

设置文档宽度、是否缩放

<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
  • 优先使用IE最新版本或chrome
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  • 360读取到这个标签立即钱换到极速模式
<meta name="renderer" content="webkit" />
  • 禁止百度转码
<meta http-equiv="Cache-Control" content="no-siteapp" />
  • UC强制竖屏
<meta name="screen-orientation" content="portrait" />
  • QQ强制竖屏
<meta name="x5-orientation" content="portrait" />
  • UC强制全屏
<meta name="full-scerrn" content="yes" />
  • QQ强制全屏
<meta name="x5-fullscreen" content="ture" />
  • QQ应用模式
<meta name="x5-page-mode" content="app" />
  • UC应用模式
<meta name="browsermode" content="application">
  • window phone 点亮无高光
<meta name="msapplication-tap-highlight" content="no" />
  • 安卓设备不自动识别邮件地址
<meta name="format-detection" name="email=no" />

猜你喜欢

转载自blog.csdn.net/qq_41950190/article/details/104292836