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>
Good day! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa? My site covers a lot of the same topics as yours and I feel we could greatly benefit from each other. If you’re interested feel free to shoot me an email. I look forward to hearing from you! Awesome blog by the way!
Кришки для розігріву в мікрохвильовці
That is very interesting, You are an excessively skilled blogger. I have joined your feed and stay up for seeking extra of your great post. Also, I’ve shared your website in my social networks
Rybelsus
Thanks for another informative site. Where else could I get that type of information written in such an ideal approach? I have a undertaking that I’m simply now operating on, and I’ve been on the glance out for such information.
Rybelsus
Great site! I recommend everyone to view this sitehttps://www.vaporpuffs.com/collections/raz
Standard Price for VIP- membership for 1 Week VIP Membership is 0.0014 BTC, You will do send payment to BTC address 1KEY1iKrdLQCUMFMeK4FEZXiedDris7uGd
Discounted price may be different from 0.00075 to 0.00138 BTC, that is why follow to all announces published in our Public channel!
crypto signals
buy flagyl 200mg online cheap – cefaclor 500mg tablet order azithromycin pill
why can flomax capsules be opened
contrave trial
Remarkable! Its truly remarkable post, I have got
much clear idea regarding from this paragraph.
I saw similar here: Sklep internetowy
effexor symptoms
Wow, marvelous weblog layout! How lengthy have you been running a blog for?
you made blogging glance easy. The full look of your site is excellent, let alone the content!
You can see similar here najlepszy sklep
cheap ampicillin cost ampicillin buy amoxicillin online
can you take flexeril and ibuprofen together
buy valtrex 1000mg without prescription – buy diltiazem pills for sale buy generic acyclovir 400mg
Great site! I recommend everyone to view this sitehttps://www.vaporpuffs.com/collections/geek-bar
augmentin 500 125
verapamil and diltiazem
bcs class of ezetimibe
Great site! I recommend everyone to view this sitehttps://www.vaporpuffs.com/collections/raz
Aviator Spribe казино регистрация
Добро пожаловать в захватывающий мир авиаторов! Aviator – это увлекательная игра, которая позволит вам окунуться в атмосферу боевых действий на небе. Необычные графика и захватывающий сюжет сделают ваше путешествие по воздуху неповторимым.
Aviator Spribe казино играть на Mac
Aviator Spribe играть на евро казино
Добро пожаловать в захватывающий мир авиаторов! Aviator – это увлекательная игра, которая позволит вам окунуться в атмосферу боевых действий на небе. Необычные графика и захватывающий сюжет сделают ваше путешествие по воздуху неповторимым.
Aviator Spribe играть
stromectol coupon – order ceftin 500mg pill sumycin uk
Наша компания предлагает полный спектр услуг по ремонту и отделке Квартир, коттеджей и домов под ключ в Алматы. Мы берем на себя все этапы работы, начиная с разработки дизайн-проекта и заканчивая финальной отделкой и установкой мебели. В нашем пакете услуг входит: Ремонт Квартиры под ключ в Алматы
diclofenac sodium dr 75 mg
Metal scrap disposal Ferrous material recycling growth projections Iron metal recovery
Ferrous material waste processing, Iron and steel scrapping and recycling yard, Scrap metal recovery solutions
purchase metronidazole sale – cleocin oral buy generic zithromax
Good day I am so happy I found your web site, I really found you by error, while I was searching on Bing for something else, Nonetheless I am here now and would just like to say cheers for a marvelous post and a all round enjoyable blog (I also love the theme/design), I don’t have time to browse it all at the moment but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the awesome b.
https://lpgtech.ua/landi-renzo
Great site! I recommend everyone to view this siteGeek Bar
order ciplox 500mg online – cheap doryx order erythromycin 250mg sale
losartan 25 mg tablet cozaar