当前位置:网站首页>Emmet syntax
Emmet syntax
2022-07-29 09:00:00 【bin elf】
Emmet: It's actually an editor plug-in .dreamweaver Bring this plug-in
First step : newly build


Choose a save path
ctrl+s

Realization effect 
Delete the code framework and use ---emmet Grammar is common
html:5
Realization effect

Then you can change the title document (title)

After that body It can be used internally emmet Syntax creation html The grammatical framework of ( All need buttons TAB Key generation )
div label identification class
div.container 
Realization effect

# identification id attribute
div#container
Realization effect

Context ;
>: Represents a subclass selector
.: Means directly with class Class occurrence And no label is specified. The default is div label
ul: label
list: attribute
div. ul There is no label specified in it. The default is li label
( think ul and li Is a pair of default combinations )
.wrap>ul.list>.sites 
Context ;
>: Represents a subclass selector
.: Means directly with class Class occurrence
ul: label
list: attribute
+: It means brother label
.:div label
.wrap>ul.list+.sitesRealization effect

^: Represents the parent element , And represents the superior element
In this case site Of div Labels and wrap Of div At the same level
.wrap>ul.list^.sitesRealization effect

Express div div ht p Juxtaposition
> Represents the parent container
h1 Indicates the first level title
p label
.outer>.inner>h1+pRealization effect :

div.wrap ->p
->a
->p( Represents the parent element a A higher level of )
.wrap>p>a^p
div.wrap
->p
->em
->a
->p(a The parent of the parent )
.wrap>p>em>a^^p
(.one>h1)+(.two>h1)html Of () Representation grouping
grouping : It is to regard it as a whole
+: It means juxtaposition
(div:one
->h1) To represent a whole
div:two
->h1
(section>.wrap>h1>p>a)+(section>.wrap>p+p)section
->:div.wrap
->h1
->p
->a
section
->div.wrap
->p
->p
Insert the attribute of the text inside the label
Use {} To insert
h1{This is heading1}+p{lorem}
Add the class (class) Properties of ; If the label has multiple class Properties can be used
No label specified : by div
.one.two.three
*: It means multiplicity
ul label
->li label
Juxtaposition 3 individual
ul>li*3
(section>.wrap)*3section
->div:wrap
section
->div:wrap
section
->div:wrap
Automatic counting :
$ Symbolic representation
$$:01 02 03
ul>li.item${item$$}*3ul
->li: attribute item1( The first one means 1 For after 2) written words item01
ul
->li: attribute item2 item02
ul
->li: attribute item3 item03
边栏推荐
- 不同数据库相同字段查不重复数据
- 数据表示与计算(进制)
- Complete knapsack problem from simplicity to ultimate
- Selenium actual combat case crawling JS encrypted data
- [from_bilibili_dr_can][[advanced control theory] 9_ State observer design] [learning record]
- Osgsimplegl3 combined with renderdoc tool
- ADB common command list
- GBase 8s数据库有哪些备份恢复方式
- (视频+图文)机器学习入门系列-第2章 线性回归
- Amazfit dial Kit
猜你喜欢

QT learning: use non TS files such as json/xml to realize multilingual internationalization

1.2.24 fastjson deserialization templatesimpl uses chain analysis (very detailed)
Data representation and calculation (base)

LeetCode刷题(6)

预训练模型与传统方法在排序上有啥不同?

Sword finger offer 32 - ii Print binary tree II from top to bottom

2022 Teddy cup data mining challenge C project and post game summary

Regular expression verification version number

2022电工(初级)考题模拟考试平台操作

Demonstration and solution of dirty reading, unrepeatable reading and unreal reading
随机推荐
201803-3 CCF URL映射 满分题解
Simple unit testing idea
LeetCode刷题(6)
access数据库可以被远程访问吗
01-01-osg GL3 environment setup
BI data analysis practitioners learn financial knowledge from scratch? What introductory books are recommended
SAP sm30 brings out description or custom logical relationship
Basic shell operations (Part 2)
Leetcode question brushing (6)
2022 question bank and answers of operation certificate examination for main principals of hazardous chemical business units
Compile and install Apache for rocky Foundation
Intel将逐步结束Optane存储业务 未来不再开发新产品
CVPR 2022 | clonedperson: building a large-scale virtual pedestrian data set of real wear and wear from a single photo
解决Base64 报错 Illegal base64 character
Basic shell operations (Part 1)
Tesseract text recognition -- simple
OSG advanced sequence
Data is the main body of future world development, and data security should be raised to the national strategic level
Osg3.6.5 failed to compile freetype
Count the list of third-party components of an open source project