美文网首页
配置html.json用户代码片段

配置html.json用户代码片段

作者: 吹过的那阵风_看过的那片海 | 来源:发表于2019-01-13 23:24 被阅读0次

{

    "a标签": {

        "prefix": "aaa",

        "body": [

            "<a href=\"javascript:;\">$1</a>"

        ],

        "description": "我自己定义的a标签"

    },

    "理想视口标签": {

        "prefix": "meta:vp",

        "body": [

            "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no\">"

        ],

        "description": "理想视口的标准写法"

    },

    "多了一个div": {

        "prefix": "qdsq",

        "body": [

            "<!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"UTF-8\"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no\"> <title>$TM_FILENAME</title> <style> div:nth-child(1) { width: 200px; height: 200px; background-color: aqua;  margin: 100px auto; } </style> </head> <body> <div></div>  <script> var div=document.querySelector(\"div\"); </script></body> </html>"

        ],

        "description": "多了一个div"

    },

    "li标签嵌套a标签嵌套图片标签": {

        "prefix": "liai",

        "body": [

            " (li>a[href=\"javascript:;\"]>img[src])"

        ],

        "description": "li>a>img"

    }

    ,

    "生成jq标签": {

        "prefix": "sq",

        "body": [

            " <script src=\"https://cdn.staticfile.org/jquery/1.2.3/jquery.js\"></script>"

        ],

        "description": ""

    }

}

相关文章

网友评论

      本文标题:配置html.json用户代码片段

      本文链接:https://www.haomeiwen.com/subject/ajsrdqtx.html