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>
Tente a sua sorte neste cassino Tigrinho
O cassino perfeito para jogos de azar Tigrinho
Cassinos com as melhores avaliacoes Tigrinho
Escolha este cassino confiavel Tigrinho
SildГ©nafil 100mg pharmacie en ligne: Acheter du Viagra sans ordonnance – SildГ©nafil 100mg pharmacie en ligne
Confie em um cassino confiavel Tigrinho
whats the max safe dose of tadalafil xtenda for a healthy man
As maiores probabilidades neste cassino Tigrinho
pharmacie en ligne france pas cher: kamagra gel – pharmacie en ligne france pas cher
SildГ©nafil Teva 100 mg acheter: viagra sans ordonnance – Viagra homme prix en pharmacie sans ordonnance
Os melhores bonus desta casa de apostas Tigrinho
Viagra femme ou trouver: viagra en ligne – Viagra vente libre pays
Great site! I recommend to everyone!seo xidmetleri
Cassinos com condicoes favoraveis Tigrinho
This is very interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your wonderful post. Also, I’ve shared your web site in my social networks!
Del Mar Energy
Os melhores bonus deste cassino Tigrinho
Jogue em um cassino confiavel Tigrinho
pharmacie en ligne fiable: cialis generique – pharmacie en ligne fiable
Great site! I recommend to everyone!seo xidm?ti
Ganhos maximos nesta casa de apostas Tigrinho
Jogue em um cassino confiavel Tigrinho
ascorbic acid sheep – ascorbic acid saturday ascorbic acid urgent
Um cassino com uma excelente reputacao Tigrinho
You have a real gift for writing. Your posts are always so engaging and full of valuable information. Keep up the great work!nexusnook
pharmacie en ligne france livraison internationale: pharmacie en ligne sans ordonnance – Pharmacie Internationale en ligne
Eu recomendo um cassino confiavel Tigrinho
Experimente este cassino de primeira linha Tigrinho
I’m always impressed by the depth of knowledge and insight you bring to your posts. This was another fantastic article. Thank you!echozone
Eu recomendo o melhor cassino Tigrinho
pharmacie en ligne pas cher: Pharmacies en ligne certifiees – п»їpharmacie en ligne france