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>
gama casino
https://elena-maximova.ru
I really like your writing style, great information, appreciate it for posting : D.
bupropion 150 mg xl
retrovir 300 mg cost – zyloprim pills buy allopurinol 100mg for sale
Hey! Do you know if they make any plugins to assist with Search Engine Optimization?
I’m trying to get my blog to rank for some targeted keywords
but I’m not seeing very good gains. If you know of any please share.
Cheers! You can read similar text here: Sklep internetowy
buy clozapine without prescription – buy pepcid 40mg sale order pepcid 20mg online cheap
Отличный сайт! Всем рекомендую! заказ цветов Минск
can i give my dog augmentin 875
Aviator Spribe играть на тенге
Добро пожаловать в захватывающий мир авиаторов! Aviator – это увлекательная игра, которая позволит вам окунуться в атмосферу боевых действий на небе. Необычные графика и захватывающий сюжет сделают ваше путешествие по воздуху неповторимым.
Aviator Spribe играть на рубли
celebrex and sulfa
Отличный сайт! Всем рекомендую! Тут Вы можете приобрестирозы минск
does baclofen work
I like the valuable info you supply to your articles. I’ll bookmark your blog and take a look at again here frequently. I am relatively sure I will be informed plenty of new stuff proper here! Best of luck for the following!
Отличный сайт! Всем рекомендую! Тут Вы можете оформитьзаказ цветов Минск
amitriptyline 25mg side effects
Right here is the perfect web site for anybody who really wants to find out about this topic. You know a whole lot its almost hard to argue with you (not that I personally would want to…HaHa). You definitely put a fresh spin on a topic that’s been written about for a long time. Great stuff, just excellent!
writing service
order glycomet 1000mg online – lincocin 500 mg uk order lincomycin 500 mg without prescription
aspirin half life
Отличный сайт! Всем рекомендую! Тут Вы можетекупить цветы Минск
allopurinol maximum dose
It’s very interesting! If you need help, look here: ARA Agency
Hello! Do you know if they make any plugins to help with SEO?
I’m trying to get my blog to rank for some targeted keywords but I’m
not seeing very good gains. If you know of any please share.
Many thanks! You can read similar article here:
Sklep online
lasix sale – prazosin 1mg uk capoten ca
I’m impressed by the depth of research evident in this post. The references add credibility and make this a reliable resource for anyone interested.
Affinity Photo Serial Key
веб займ
займы онлайн
For hottest information you have to pay a visit web and on world-wide-web I found this site as a best website for newest updates.
Samples
aripiprazole 2 mg side effects
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
https://jogosfriv2023.com
The very root of your writing while sounding agreeable at first, did not sit properly with me after some time. Someplace within the paragraphs you were able to make me a believer but just for a short while. I still have got a problem with your jumps in logic and one might do nicely to help fill in those gaps. In the event you can accomplish that, I would surely end up being amazed.
Hi, this weekend is fastidious in support of me, because this moment i am reading this fantastic informative paragraph here at my house.
Rybelsus