HBuilder神奇之常用快捷键总结

  1. <!DOCTYPE html>  
  2. <html>  
  3.   
  4.     <head>  
  5.         <meta charset="utf-8">  
  6.         <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />  
  7.         <title>hello world</title>  
  8.         <style type="text/css">  
  9.             body {  
  10.                 font-size: 12px;  
  11.                 font-family: "微软雅黑";  
  12.             }  
  13.               
  14.             h1 {  
  15.                 font-size: 16px;  
  16.                 margin-top: 12px;  
  17.             }  
  18.               
  19.             h3 {  
  20.                 font-weight: normal  
  21.             }  
  22.         </style>  
  23.     </head>  
  24.   
  25.     <body>  
  26.         <script>  
  27.             /*<h1>1:然后按下拓展键(默认为tab),即可得到代码片段:</h1>  
  28.                      *   
  29.                      *   
  30.                     <h3>在编辑器中输入缩写代码:ul>li*5 ,</h3>  
  31.                     <h1>2:层级写法</h1>  
  32.                     <h3>缩写:nav>ul>li</h3>  
  33.                     <h1>3:兄弟</h1>  
  34.                     <h3>缩写:div+p+bq</h3>  
  35.                     <h1>4:上级写法 ^ 一个推一级</h1>  
  36.                     <h3>缩写:div+div+div>p>span+em^^bq</h3>  
  37.   
  38.                     <h1>5:分组写法()</h1>  
  39.                     <h3>缩写:div+(span*3>a)+div</h3>  
  40.                     <h3>(div>dl>(dt+dd)*3)+footer>p</h3>  
  41.   
  42.                     <h1>6:乘法()</h1>  
  43.                     <h3>缩写:(div+(span*3>a)+div)*2 或者  ul>li*5</h3>   
  44.                       
  45.                     <h1>7:自增符号:$</h1>  
  46.                     <h3>缩写:div[title='keke$']{keke$}*3 或者ul>li.item$$$*5</h3>  
  47.                       
  48.                       
  49.                     <h1>8:文本内容:{}</h1>  
  50.                     <h3>div#id{是的士大夫是否士大夫$}*3</h3>  
  51.                       
  52.                       
  53.                     <h1>9:降序写法:$@-</h1>  
  54.                     <h3>div#id$@-*5</h3>  
  55.                       
  56.                     <h1>9:起点写法:$@-</h1>  
  57.                     <h3>div#id$@3*5</h3>  
  58.                       
  59.                       
  60.                     <h1>10:ID和类属性,如果不写标签,默认是div   </h1>  
  61.                     <h3>  
  62.                         #header  
  63.                         .title  
  64.                         span#id  
  65.                         div.class  
  66.                         form#search.wide  
  67.                         p.class1.class2.class3  
  68.                         form#search.wide[action='index.jsp']  
  69.                     </h3>  
  70.                       
  71.                     <h1>11:自定义属性(自定义属性)</h1>  
  72.                     <h3>  
  73.                             p[title="Hello world"],  
  74.                             td[rowspan=2 colspan=3 title]   
  75.                             [a='value1' b="value2"]  
  76.                     </h3>  
  77.                       
  78.                     <h1>所有未知的缩写都会转换成标签,例如,</h1>  
  79.                     <h3>缩写:!</h3>  
  80.                       
  81.                     缩写:link  
  82.                     <link rel="stylesheet" href="" />  
  83.                     缩写:link:css  
  84.                       
  85.                     <link rel="stylesheet" href="style.css" />  
  86.                     缩写:link:print  
  87.                       
  88.                     <link rel="stylesheet" href="print.css" media="print" />  
  89.                     缩写:link:favicon  
  90.                       
  91.                     <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />  
  92.                     缩写:link:touch  
  93.                       
  94.                     <link rel="apple-touch-icon" href="favicon.png" />  
  95.                     缩写:link:rss  
  96.                       
  97.                     <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" />  
  98.                     缩写:link:atom  
  99.                       
  100.                     <link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml" />  
  101.                     缩写:meta  
  102.                       
  103.                     <meta />  
  104.                     缩写:meta:utf  
  105.                       
  106.                     <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />  
  107.                     缩写:meta:win  
  108.                       
  109.                     <meta http-equiv="Content-Type" content="text/html;charset=windows-1251" />  
  110.                     缩写:meta:vp  
  111.                       
  112.                     <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />  
  113.                     缩写:meta:compat  
  114.                       
  115.                     <meta http-equiv="X-UA-Compatible" content="IE=7" />  
  116.                     缩写:style  
  117.                       
  118.                     <style></style>  
  119.                     缩写:script  
  120.                       
  121.                     缩写:script:src  
  122.                       
  123.                     缩写:img  
  124.                       
  125.                     <img src="" alt="" />  
  126.                     缩写:iframe  
  127.                       
  128.                     <iframe src="" frameborder="0"></iframe>  
  129.                     缩写:embed  
  130.                       
  131.                     <embed src="" type="" />  
  132.                     缩写:object  
  133.                       
  134.                     <object data="" type=""></object>  
  135.                     缩写:param  
  136.                       
  137.                     <param name="" value="" />  
  138.                     缩写:map  
  139.                       
  140.                     <map name=""></map>  
  141.                     缩写:area  
  142.                       
  143.                     <area shape="" coords="" href="" alt="" />  
  144.                     缩写:area:d  
  145.                       
  146.                     <area shape="default" href="" alt="" />  
  147.                     缩写:area:c  
  148.                       
  149.                     <area shape="circle" coords="" href="" alt="" />  
  150.                     缩写:area:r  
  151.                       
  152.                     <area shape="rect" coords="" href="" alt="" />  
  153.                     缩写:area:p  
  154.                       
  155.                     <area shape="poly" coords="" href="" alt="" />  
  156.                     缩写:form  
  157.                       
  158.                     <form action=""></form>  
  159.                     缩写:form:get  
  160.                       
  161.                     <form action="" method="get"></form>  
  162.                     缩写:form:post  
  163.                       
  164.                     <form action="" method="post"></form>  
  165.                     缩写:label  
  166.                       
  167.                     <label for=""></label>  
  168.                     缩写:input  
  169.                       
  170.                     <input type="text" />  
  171.                     缩写:inp  
  172.                       
  173.                     <input type="text" name="" id="" />  
  174.                     缩写:input:hidden  
  175.                       
  176.                     别名:input[type=hidden name]  
  177.                       
  178.                     <input type="hidden" name="" />  
  179.                     缩写:input:h  
  180.                       
  181.                     别名:input:hidden  
  182.                       
  183.                     <input type="hidden" name="" />  
  184.                     缩写:input:text, input:t  
  185.                       
  186.                     别名:inp  
  187.                       
  188.                     <input type="text" name="" id="" />  
  189.                     缩写:input:search  
  190.                       
  191.                     别名:inp[type=search]  
  192.                       
  193.                     <input type="search" name="" id="" />  
  194.                     缩写:input:email  
  195.                       
  196.                     别名:inp[type=email]  
  197.                       
  198.                     <input type="email" name="" id="" />  
  199.                     缩写:input:url  
  200.                       
  201.                     别名:inp[type=url]  
  202.                       
  203.                     <input type="url" name="" id="" />  
  204.                     缩写:input:password  
  205.                       
  206.                     别名:inp[type=password]  
  207.                       
  208.                     <input type="password" name="" id="" />  
  209.                     缩写:input:p  
  210.                       
  211.                     别名:input:password  
  212.                       
  213.                     <input type="password" name="" id="" />  
  214.                     缩写:input:datetime  
  215.                       
  216.                     别名:inp[type=datetime]  
  217.                       
  218.                     <input type="datetime" name="" id="" />  
  219.                     缩写:input:date  
  220.                       
  221.                     别名:inp[type=date]  
  222.                       
  223.                     <input type="date" name="" id="" />  
  224.                     缩写:input:datetime-local  
  225.                       
  226.                     别名:inp[type=datetime-local]  
  227.                       
  228.                     <input type="datetime-local" name="" id="" />  
  229.                     缩写:input:month  
  230.                       
  231.                     别名:inp[type=month]  
  232.                       
  233.                     <input type="month" name="" id="" />  
  234.                     缩写:input:week  
  235.                       
  236.                     别名:inp[type=week]  
  237.                       
  238.                     <input type="week" name="" id="" />  
  239.                     缩写:input:time  
  240.                       
  241.                     别名:inp[type=time]  
  242.                       
  243.                     <input type="time" name="" id="" />  
  244.                     缩写:input:number  
  245.                       
  246.                     别名:inp[type=number]  
  247.                       
  248.                     <input type="number" name="" id="" />  
  249.                     缩写:input:color  
  250.                       
  251.                     别名:inp[type=color]  
  252.                       
  253.                     <input type="color" name="" id="" />  
  254.                     缩写:input:checkbox  
  255.                       
  256.                     别名:inp[type=checkbox]  
  257.                       
  258.                     <input type="checkbox" name="" id="" />  
  259.                     缩写:input:c  
  260.                       
  261.                     别名:input:checkbox  
  262.                       
  263.                     <input type="checkbox" name="" id="" />  
  264.                     缩写:input:radio  
  265.                       
  266.                     别名:inp[type=radio]  
  267.                       
  268.                     <input type="radio" name="" id="" />  
  269.                     缩写:input:r  
  270.                       
  271.                     别名:input:radio  
  272.                       
  273.                     <input type="radio" name="" id="" />  
  274.                     缩写:input:range  
  275.                       
  276.                     别名:inp[type=range]  
  277.                       
  278.                     <input type="range" name="" id="" />  
  279.                     缩写:input:file  
  280.                       
  281.                     别名:inp[type=file]  
  282.                       
  283.                     <input type="file" name="" id="" />  
  284.                     缩写:input:f  
  285.                       
  286.                     别名:input:file  
  287.                       
  288.                     <input type="file" name="" id="" />  
  289.                     缩写:input:submit  
  290.                       
  291.                     <input type="submit" value="" />  
  292.                     缩写:input:s  
  293.                       
  294.                     别名:input:submit  
  295.                       
  296.                     <input type="submit" value="" />  
  297.                     缩写:input:image  
  298.                       
  299.                     <input type="image" src="" alt="" />  
  300.                     缩写:input:i  
  301.                       
  302.                     别名:input:image  
  303.                       
  304.                     <input type="image" src="" alt="" />  
  305.                     缩写:input:button  
  306.                       
  307.                     <input type="button" value="" />  
  308.                     缩写:input:b  
  309.                       
  310.                     别名:input:button  
  311.                       
  312.                     <input type="button" value="" />  
  313.                     缩写:isindex  
  314.                       
  315.                     <isindex />  
  316.                     缩写:input:reset  
  317.                       
  318.                     别名:input:button[type=reset]  
  319.                       
  320.                     <input type="reset" value="" />  
  321.                     缩写:select  
  322.                       
  323.                     <select name="" id=""></select>  
  324.                     缩写:option  
  325.                       
  326.                     <option value=""></option>  
  327.                     缩写:textarea  
  328.                       
  329.                     <textarea name="" id="" cols="30" rows="10"></textarea>  
  330.                     缩写:menu:context  
  331.                       
  332.                     别名:menu[type=context]>  
  333.                       
  334.                     <menu type="context"></menu>  
  335.                     缩写:menu:c  
  336.                       
  337.                     别名:menu:context  
  338.                       
  339.                     <menu type="context"></menu>  
  340.                     缩写:menu:toolbar  
  341.                       
  342.                     别名:menu[type=toolbar]>  
  343.                       
  344.                     <menu type="toolbar"></menu>  
  345.                     缩写:menu:t  
  346.                       
  347.                     别名:menu:toolbar  
  348.                       
  349.                     <menu type="toolbar"></menu>  
  350.                     缩写:video  
  351.                       
  352.                     <video src=""></video>  
  353.                     缩写:audio  
  354.                       
  355.                     <audio src=""></audio>  
  356.                     缩写:html:xml  
  357.                       
  358.                     <html xmlns="http://www.w3.org/1999/xhtml"></html>  
  359.                     缩写:keygen  
  360.                       
  361.                     <keygen />  
  362.                     缩写:command  
  363.                       
  364.                     <command />  
  365.                     缩写:bq  
  366.                       
  367.                     别名:blockquote  
  368.                       
  369.                     <blockquote></blockquote>  
  370.                     缩写:acr  
  371.                       
  372.                     别名:acronym  
  373.                       
  374.                     <acronym title=""></acronym>  
  375.                     缩写:fig  
  376.                       
  377.                     别名:figure  
  378.                       
  379.                     <figure></figure>  
  380.                     缩写:figc  
  381.                       
  382.                     别名:figcaption  
  383.                       
  384.                     <figcaption></figcaption>  
  385.                     缩写:ifr  
  386.                       
  387.                     别名:iframe  
  388.                       
  389.                     <iframe src="" frameborder="0"></iframe>  
  390.                     缩写:emb  
  391.                       
  392.                     别名:embed  
  393.                       
  394.                     <embed src="" type="" />  
  395.                     缩写:obj  
  396.                       
  397.                     别名:object  
  398.                       
  399.                     <object data="" type=""></object>  
  400.                     缩写:src  
  401.                       
  402.                     别名:source  
  403.                       
  404.                     <source></source>  
  405.                     缩写:cap  
  406.                       
  407.                     别名:caption  
  408.                       
  409.                     <caption></caption>  
  410.                     缩写:colg  
  411.                       
  412.                     别名:colgroup  
  413.                       
  414.                     <colgroup></colgroup>  
  415.                     缩写:fst, fset  
  416.                       
  417.                     别名:fieldset  
  418.                       
  419.                     <fieldset></fieldset>  
  420.                     缩写:btn  
  421.                       
  422.                     别名:button  
  423.                       
  424.                     <button></button>  
  425.                     缩写:btn:b  
  426.                       
  427.                     别名:button[type=button]  
  428.                       
  429.                     <button type="button"></button>  
  430.                     缩写:btn:r  
  431.                       
  432.                     别名:button[type=reset]  
  433.                       
  434.                     <button type="reset"></button>  
  435.                     缩写:btn:s  
  436.                       
  437.                     别名:button[type=submit]  
  438.                       
  439.                     <button type="submit"></button>*/  
  440.         </script>  
  441.     </body>  
  442.   
  443. </html>  
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值