Emmet 介紹 – 縮寫篇
縮寫這樣的編輯方式是Emmet的核心功能,可以在輸入簡短的代碼後轉換成結構複雜的HTML,而且使用方式跟使用CSS的選取器雷同,所以非常易於使用。例如:
page>div.logo+ul#navigation>li*5>a{Item $} ------ <div id="page"> <div class="logo"></div> <ul id="navigation"> <li><a href="">Item 1</a></li> <li><a href="">Item 2</a></li> <li><a href="">Item 3</a></li> <li><a href="">Item 4</a></li> <li><a href="">Item 5</a></li> </ul> </div>
以下分別介紹各種不同的縮寫撰寫模式
子結構:>
div>ul>li ------ <div> <ul> <li></li> </ul> </div>
同層結構:+
div+p+bq ------ <div></div> <p></p> <blockquote></blockquote>
上一層:^
div+div>p>span+em^bq ------ <div></div> <div> <p><span></span><em></em></p> <blockquote></blockquote> </div>
div+div>p>span+em^^^bq ------ <div></div> <div> <p><span></span><em></em></p> </div> <blockquote></blockquote>
乘法:*
ul>li*5 ------ <ul> <li></li> <li></li> <li></li> <li></li> <li></li> </ul>
分組:( )
div>(header>ul>li*2>a)+footer>p ------ <div> <header> <ul> <li><a href=""></a></li> <li><a href=""></a></li> </ul> </header> <footer> <p></p> </footer> </div>
(div>dl>(dt+dd)*3)+footer>p ------ <div> <dl> <dt></dt> <dd></dd> <dt></dt> <dd></dd> <dt></dt> <dd></dd> </dl> </div> <footer> <p></p> </footer>
項目編號:$
ul>li.item$*5 ------ <ul> <li class="item1"></li> <li class="item2"></li> <li class="item3"></li> <li class="item4"></li> <li class="item5"></li> </ul>
ul>li.item$$*5 ------ <ul> <li class="item001"></li> <li class="item002"></li> <li class="item003"></li> <li class="item004"></li> <li class="item005"></li> </ul>
ul>li.item$@-*5 ------ <ul> <li class="item5"></li> <li class="item4"></li> <li class="item3"></li> <li class="item2"></li> <li class="item1"></li> </ul>
ul>li.item$@3*5 ------ <ul> <li class="item3"></li> <li class="item4"></li> <li class="item5"></li> <li class="item6"></li> <li class="item7"></li> </ul>
ul>li.item$@-3*5 ------ <ul> <li class="item7"></li> <li class="item6"></li> <li class="item5"></li> <li class="item4"></li> <li class="item3"></li> </ul>
內容:{ }
a{Click me} ------ <a href="">Click me</a>
p>{Click }+a{here}+{ to continue} ------ <p>Click <a href="">here</a> to continue</p>
ID and Class
div#header+div.page+div#footer.class1.class2.class3 ------ <div id="header"></div> <div class="page"></div> <div id="footer" class="class1 class2 class3"></div>
自訂屬性
td[title="Hello world!" colspan=3] ------ <td title="Hello world!" colspan="3"></td>
самоходный подъемник
https://www.podyemniki-machtovyye-teleskopicheskiye.ru/
free vpn for pc windows 10
winscribe vpn
best vpn for streaming reddit
мачтовый подъемник
https://podyemniki-machtovyye-teleskopicheskiye.ru
best cheap vpn reddit
p2p vpn free
fastest vpn services
free cash bonus no deposit casino
free money casino
no deposit welcome bonus
too much viagra cialis for daily use blood pressure medication and viagra what is cialis 5mg used for
private vpn
hotspot vpn free
pia vpn
https://colab.research.google.com/drive/1U1j86TNg42ZX2FESWky7OTt9ENtCpO-4
60a1537d4d arymar
https://colab.research.google.com/drive/1Mnvrtv_pkvNGmipdKqf-A_CWEE78Jtw7
60a1537d4d jandav
casino games that pay real money
online casinos real money
safe online casino
cost generic plaquenil plaquenil tablets 200mg plaquenil back pain and headache how much does plaquenil cost
https://colab.research.google.com/drive/1FhLmcVOAfQgrO3nk5R-ReloSW-xFmOnl
60a1537d4d coletru
https://colab.research.google.com/drive/1X-7V-7vYHxiRPwYJuhpOM9x7jv6L28Oi
60a1537d4d dorekah
https://colab.research.google.com/drive/1x8Y_nmYuIHAkzweQMuW-rex9qAPzONBY
60a1537d4d rayprys
https://colab.research.google.com/drive/12nOOBYqH4loxsjyCIwSXh1_1Hcr6iyx2
60a1537d4d origseri
japan vpn free
best free vpn 2022
free vpn account
https://colab.research.google.com/drive/1gfqolB-WekqaVXxA6sTXBDDtG7THfmmq
60a1537d4d willvoyl
https://colab.research.google.com/drive/1Wyk2Xb_u5eqAJGIVOCqwc4XTrT8kXDRL
60a1537d4d darbeni
https://colab.research.google.com/drive/1UTfjXK1eljbiQYPNTjC9R2KZI9SxfRAi
60a1537d4d prymdar
https://colab.research.google.com/drive/11m_6prFt9y8HRpqPpUY84lnt20HLLgGd
60a1537d4d okifide
https://colab.research.google.com/drive/1U_EQ0KRinY7fmRKKp-03_x39RW01Yni4
60a1537d4d kasflo
https://colab.research.google.com/drive/10L6e2q4Z6a2QKDFUv9dygB7dOkBEVHih
60a1537d4d triuil