• meta


    1. 定义针对搜索引擎的关键词:<meta name="keywords" content="meta,red" />

    2. 定义对页面的描述:<meta name="description" content="这是meta教程" />

    3. 定义页面的最新版本:<meta name="revised" content="bu, 2016/5/10/" />

    4. 每 5 秒刷新一次页面:<meta http-equiv="refresh" content="5" />

    5. 网页作者: <meta name="author" content="name, email@gmail.com"/>
    6. 添加智能 App 广告条(iOS 6+ Safari):<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
    7. 设置苹果工具栏颜色:<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    8.  忽略页面中的数字识别为电话,忽略email识别 :<meta name="format-detection" content="telphone=no, email=no"/> 

    9. 是否启用 WebApp 全屏模式:<meta name="apple-mobile-web-app-capable" content="yes" />

    10. 是否删除默认的苹果工具栏和菜单栏:<meta name="apple-mobile-web-app-capable" content="yes" />  和9一样。

    11. 启用电话功能,请使用<a href="tel:15855555555">15855555555</a>来代替,邮件则为<a href="mailto:xxx@xxx.com">发送邮件</a>

    12. windows phone 点击无高光 <meta name=”msapplication-tap-highlight” content=”no”>

    13. 不让百度转码<meta http-equiv=”Cache-Control” content=”no-siteapp” />

    14. 设置“添加到主屏幕图标:用户可以像保存书签一样把一个网站添加到主屏幕,下次用户直接点击主屏幕上的图标就能进入网站。

    15. <link rel=“apple-touch-icon-precomposed” href=“/apple-touch-icon-57×57-1.png”/>
    16. 设置“添加到主屏幕图标:用户可以像保存书签一样把一个网站添加到主屏幕,下次用户直接点击主屏幕上的图标就能进入网站。<link rel=“apple-touch-icon-precomposed” href=“/apple-touch-icon-57×57-1.png”/>
    17. <link rel=“apple-touch-icon-precomposed” sizes=“114×114” href=“/apple-touch-icon-114×114-precomposed.png”/>

    18. <!– Retina iPad,144×144 像素,可以没有,但推荐有 –>

      添加到主屏幕后系统会默认给图片加上IOS相关的图标风格(比如圆角),如果需要系统直接展示原图使用apple-touch-icon-precomposed,如果需要系统添加风格使用apple-touch-icon。
    19. 设置桌面图标的标题 <span style=“font-size:12px;”><meta name=“apple-mobile-web-app-title” content=“标题”></span>最好限制在六个中文长度内,超长的内容会被隐藏
    20. viewport设置:

      <meta name="viewport" content="width=device-width,height=device-height, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1,target-densitydpi=device-dpi ">
    原创笔记
  • 相关阅读:
    ORM和JDBC
    四种会话跟踪技术以及jstl介绍
    GC、进程和线程的定义
    数组和链表的理解,及各自的优缺点
    JSP和Servlet及浏览器与tomcat交互过程
    多线程、同步实现方法及Error和Exception的区别与联系
    Eclipse创建一个普通maven项目详细步骤
    Eclipse创建一个动态maven项目详细步骤
    Myeclipse项目出现红叉解决方案
    数据结构和算法 — 平衡二叉树的实现
  • 原文地址:https://www.cnblogs.com/minty/p/7489673.html
Copyright © 2020-2023  润新知