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...

1,731 Responses

  1. Slonmob表示:

    e2x5v

    yrxhk

    ylgl

  2. fggbaqpq表示:

    http://erythromycinn.com/# erythromycin ophthalmic ointment usp

  3. barwes表示:

    4
    ■ ThumbnailCreator – “The Component That Makes What You Want To Do Possible!”

    MyDog looks like a cat, but on the inside it is like a dog!
    I have also designed a dog bone that you can use to cut the meat of your dog.
    In addition to this I have also worked on a different version of the image where the little dog icon on the side has changed to a little dog bone.
    It will generate the https://www.ukbathroomwarehouse.com/profile/Simlab8051-Download/profile
    66cf4387b8 barwes

  4. pengol表示:

    Newsletter

    Join thousands of successful entrepreneurs who never miss out on new marketing ideas.Gli Stati uniti: questa la rete delle imprese e di imprenditori italiani.

    Forza Italia

    L’iniziativa partita da Forza Italia si colloca con impegno solidale e omogeneo a quelli della collettività, oltre che con quelli https://www.joshlawrencejazz.com/profile/Sam-Broadcaster-2015-2-TOP-Cracked/profile
    66cf4387b8 pengol

  5. ludhen表示:

    Features

    Operations

    Auto numbering, i.e. Auto number can be used even for a variable number of parameters, and then you can use it as used in Python

    Support for multiple and variable values in the same statement without parentheses

    Support for duplicate initialization of variables

    Unifying “for” loops, “while” loops, “read”s, “write”s (using >>, >>=, and https://www.my360wellnesshub.com/profile/subitokarreepy/profile
    66cf4387b8 ludhen

  6. iterale表示:

    Main Interface
    Main window can be divided into several sub-windows:
    ■ Extensions Window, where you can see all registered system extensions in one list and work with them
    ■ Ready for Call Window, where you can either see list of open calls or search for new calls
    ■ New Call Window, where you can receive new incoming calls
    ■ Phones Window, where you can open contacts form the computer and make calls to them
    https://www.ssfhelp.org/profile/gnosavalisunmom/profile
    66cf4387b8 iterale

  7. garrfed表示:

    The source code of Pascal is well suited for compiling in Java. Instead of object oriented, the Pascal language is denoted class. But you can add blocks to make this verbose language really Java.
    This tool has been decomposed in three parts: the compiler with its own interpreter, a coroutine library to deal with the synchronization and data flow and a JVM interpreter to deal with the exceptions during the execution. All these three parts are written in Java.

    The source code https://www.laafi.com/profile/taferkacitursu/profile
    66cf4387b8 garrfed

  8. handyor表示:

    Overall, it’s a reliable program that can be very helpful when it comes to avoiding cyber threats, seeing as how the process is so simple. A big thumbs up indeed!

    Peak RAM and RAMbo of the World

    This program is basically a stress test capable of installing itself in as much free RAM as you can realistically free. The more free memory you have, the more RAM rambo will be able to use while attempting to find your application. To put it simply https://www.riversidelbc.org/profile/tapeapaspiochincksys/profile
    66cf4387b8 handyor

  9. eberill表示:

    Speed is key
    Portable UCheck allows you to quickly search for applications and quickly work with them using the software updater and downloader. On the other hand, you can instantly uninstall the apps you don’t want. There is no specific measurement or time interval limiting when the software is updated or removed.
    Productivity-boosting features
    Portable UCheck is designed with the ease of use in mind. For example, the software updater is ideal for working with many apps in https://www.calypsodivers.com/profile/y3pytstrebe/profile
    99d5d0dfd0 eberill

  10. Slonmob表示:

    wc2z4

    vjo24

    litt

  11. kbreopwb表示:

    erythromycin opthalmic ointment erythromycin ophthalmic ointment for newborns

  12. RobertRhync表示:

    cialis at a discount generic tadalafil 20mg india buy cialis online australia

  13. RobertRhync表示:

    cialis replacement tadalafil 20mg best price how to buy cialis online

  14. bianwel表示:

    Free QR Creator
    bd86983c93 bianwel

  15. RobertRhync表示:

    cialis at a discount buy tadalafil purchase cialis online

發佈留言

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