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>

You may also like...

11,713 Responses

  1. Arreple表示:

    Unlike the increased production of differentiated insulin progeny from PMPs in all of the diabetic models, we did not observe a consistent pattern for the production of differentiated glucagon progeny. buy doxycycline in the right flank on day 0 with 5 10 5 MDA- MB- 231 cells.

  2. arrindCen表示:

    Those can doxycycline hyclate 100mg cause erectile dysfunction bigwigs couldn t sexual enhancement for females provoke Situ Wentian, so they could only bow their heads in anguish, sighing inwardly. what is doxycycline hyclate AWZ1066S also has a faster kill rate compared with other known antibiotics tested against Wolbachia in vitro and its mode of action is by inhibition of protein synthesis.

  3. XsaAdklLiZgt表示:

    Всем рекомендую этот обменник биткоин для обмена криптовалюты в России! Процесс обмена биткоин происходит от 5 до 15 минут.

  4. Maisiepisn表示:

    meet me dating site
    date sites free
    meet site

  5. wewencash表示:

    Rates of symptomatic STIs seen at mine health facilities decreased among miners in the intervention area compared with miners living farther from the site and with less exposure to the project, and these decreases were sustained over four years of follow- up. doxycycline price

  6. VABAKAWLBIXwf表示:

    achat viagra 20mg pilule viagra acheter viagra canada

  7. arrindCen表示:

    Animal models of osteoarthritis. is doxycycline used for

  8. Obersenep表示:

    In addition to those conditions for which antibiotics are useless, there are other illnesses which are bacterial but self- limiting. doxycycline for prostatitis

  9. Znanstvenici imaju velike nade na matične stanice, osobito u području
    transplantacije. Nedavno je pacijent s multiplom sklerozom mogao ponovno hodati zbog eksperimentalne terapije s matičnim stanicama.

    Eric Thompson zbog brzo progresivne bolesti prestao je premjestiti noge i desnu ruku i ispostavilo
    se da je u lancama za invalidska kolica.

  10. Genniepisn表示:

    gay advise chat
    omegle gay chat
    good chat to meet gay men are bi

  11. Sikis izle. 1 hafta önce 6 izlenme. striptiz yapan erkek şovu.
    4 sene önce 80 izlenme. Bekleme odasinda siki ile oynayan. 1
    gün önce 2 izlenme. Fantazi gurup. 2.

  12. Juanitapisn表示:

    date sites free for men
    personal dating ads
    beste dating site

  13. 匿名訪客表示:

    jasa backlink seo

  14. Avradini zenciye sikdirib viydo ceken koca. Diyerek yarrağını götümden çıkarttı.
    Kapıyı acan baldızdı ve benı görünce bıraz şaşırdı,
    acaba aklıma düşenmiydi, ben yine hilalin amını yaladım, tişortunun altındaki
    sütyenine rağmen avuçlarımdaydı. Sonunada ahhh ahhh ekledim Kelimeler birden ağzımdan cıkıverdi.

  15. Deeynpisn表示:

    gay chat rooms columbia sc
    gay masturbate chat
    gay cruising chat

  16. SABAKAWLBIXtm表示:

    buy cenforce sale order cenforce 50 mg sale cenforce 50 mg brand

  17. Mavispisn表示:

    find online dating
    local online dating sites
    gay, dating singles gmail

  18. Neexykelp表示:

    arimidex vs nolvadex Acta Neurol Scand 1983;67 164-72.

  19. endearype表示:

    Threads can be considered to be discussions, with the structure of an online forum allowing for a community s discussion history to be archived and searched and later retrieved 29 see Fig. tamoxifen and endometrial cancer Accumulated evidence has indicated that the ovaries produce another non-steroidal substance, named gonadotropins surge-attenuating factor GnSAF , which may play a role in the control of the midcycle luteinizing hormone surge in women 278-281.

  20. fantastic put up, very informative. I’m wondering why the other specialists of this sector don’t realize this. You must continue your writing. I am confident, you’ve a huge readers’ base already!

  21. endearype表示:

    chemo tamoxifen Three of the infants have been released from the University of Maryland Medical Center, and the other two are due home this week — home being a one-bedroom apartment in Baltimore.

  22. spervenef表示:

    anastrozole vs tamoxifen The only receipts we got had their clinic and a dollar amount, which essentially says nothing.

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。