问题
I did not find the answer on documentation for this question.
As we know, div.container gives
<div class="container">
However, what abbreviation shall be used for
<div class="row placeholders">
Anyone knows? Thanks.
回答1:
From the Emmet Cheat Sheet:
p.class1.class2.class3 <p class="class1 class2 class3"></p>
So, div.row.placeholders
will give you:
<div class="row placeholders"></div>
回答2:
To obtain this using Emmet use:
input[placeholder="Username" maxlength="254" name="username" type="text" required autofocus=""]#id_username.form-control
but required will be like required=""
But I think that's not really an "abbreviation" anymore
来源:https://stackoverflow.com/questions/32469228/emmet-html-div-tag-with-multiple-words-class-name