HTML知识拾遗(7):meta用例

  1. <meta>
    <!-- 自定义iOS Safari WebApp的名字。更多参考点我 -->
    <meta name="apple-mobile-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="NAME_YOUR_APP_HERE">
    <!-- viewport设置示例  -->
    <!-- 针对Chromium以及Safari iOS 9.2+ -->
    <meta
      name=viewport
      content="width=device-width
        , initial-scale=1"
    >
    <!-- 针对IE/Edge -->
    <meta
      name=viewport
      content="width=device-width
        , user-scalable=no"
    >
    /* 针对IE/Edge以及iOS 9.1 & - */
    html {
      -ms-touch-action: manipulation;
      touch-action: manipulation;
    }