Emmet HTML div tag with multiple words class name

痴心易碎 提交于 2019-12-18 15:32:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!