zhengwei1949 / myblog

个人博客
10 stars 6 forks source link

vscode备份snippet #144

Open zhengwei1949 opened 6 years ago

zhengwei1949 commented 6 years ago

css

{
  "max768": {
    "prefix": "max768",
    "body": [
      "@media screen and (max-width:768px){\r",
      "        \r",
      "}"
    ],
    "description": "max768"
  },
  "max992": {
    "prefix": "max992",
    "body": [
      "@media screen and (min-width:768px) and (max-width:992px){\r",
      "        \r",
      "}"
    ],
    "description": "max992"
  },
  "max1200": {
    "prefix": "max1200",
    "body": [
      "@media screen and (min-width:992px) and (max-width:1200px){\r",
      "            \r",
      "}"
    ],
    "description": "max1200"
  },
  "max2000": {
    "prefix": "max2000",
    "body": [
      "@media screen and (min-width:1200px){\r",
      "        \r",
      "}"
    ],
    "description": "max2000"
  },
  "clearfix": {
    "prefix": "clearfix",
    "body": [
      ".clearfix::after{\r",
      "     content:\".\";\r",
      "     display:block;\r",
      "     height:0;\r",
      "     clear:both;\r",
      "     visibility:hidden\r",
      "}"
    ],
    "description": "clearfix"
  }
}

html

{
    // Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and 
    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
    // same ids are connected.
    // Example:
    "viewport": {
        "prefix": "viewport",
        "body": [
            "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0\">"
        ],
        "description": "viewport"
    },
    "h5": {
        "prefix": "h5",
        "body": [
            "<!DOCTYPE html>",
            "<html lang='en'>",
            "  <head>",
            "    <meta charset='UTF-8'>",
            "    <meta name='viewport' content='width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0'>",
            "    <meta http-equiv='X-UA-Compatible' content='ie=edge'>",
            "    <title>Document</title>",
            "  </head>",
            "  <body>",
            "      ",
            "  </body>",
            "</html>"
        ],
        "description": "html5骨架结构"
    }
}