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>
Купить диплом о среднем образовании в Москве и любом другом городе
Viagra generic over the counter Fast Pills For Men Cheap Sildenafil 100mg
She Modeled Portraits In Wax”, The Christian Science Monitor, November 15, 1945. Accessed June 6, 2011. “One of the most eccentric and interesting characters in early American artwork was Persistence Lovell, born in 1725 at Bordentown, New Jersey.
buy erectile dysfunction pills: best online ed medication – where to get ed pills
NATURAL MOUNJARO RECIPE
Buy Cialis online: MaxPillsForMen.com – Cialis over the counter
частная скорая наркологическая помощь частная скорая наркологическая помощь .
наркологическая скорая бесплатная https://internetmoney.bestbb.ru/viewtopic.php?id=31709/ .
Tadalafil Tablet buy cialis online Cialis 20mg price
наркологическая скорая помощь москва http://www.ximki.ukrbb.net/viewtopic.php?f=12&t=3719/ .
Аттестат школы купить официально с упрощенным обучением в Москве
наркологическая скорая наркологическая скорая .
Another is Elephant in the Valley, a survey aiming to expose discrimination began by several ladies in enterprise together with Tracy Vassallo, a former associate of the identical firm.
He also was a life member of Phi Delta Kappa and a member of Texas Methodist Hospital Board of Directors, Masonic Lodge and the Knights of Pythias.
This enactment is referred to as ”The Bankruptcy Code,” or ”United States Code” (Department and Ray, 2002).
https://fastpillseasy.com/# ed online prescription
Billionaire Brain Wave
WAS A LAWYER FOR THE CRUISE Lines.
Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is magnificent, as well as the content!
https://fastpillsformen.com/# Viagra Tablet price
NATURAL MOUNJARO RECIPE
Though they’re typically not included with traditional financial savings choices, cash market accounts (MMAs) and certificates of deposit (CDs) are additionally accessible.
Pronerve6 review
viagra without prescription: FastPillsForMen – sildenafil 50 mg price
http://fastpillsformen.com/# buy viagra here
cheap viagra Fast Pills For Men Sildenafil Citrate Tablets 100mg
https://maxpillsformen.com/# cialis for sale
MITOLYN WEIGHT LOSS
Buy Cialis online: buy cialis online – Cheap Cialis
NATURAL MOUNJARO RECIPE