Hello World
在Brackets中使用Emmet_html/css_WEB-ITnose
当在Brackets中安装上Emmet插件后,就可以使用Emmet的语法来加速前端编写。
有关html
● 子关系>
div>ul>li
● 相邻+
div+p+bq
● 上一级^
div+div>p>span+em^bq
● 重复*
ul>li*5
● 分组()
div>(header>ul>li*2)+footer>p
● 类
div.demo
● ID
div#demo
● 索引$
ul>li.item$*5
ul>li.item$$$*5
ul>li.item$@-*5 倒排序
ul>li.item$@3*5 从3开始
● 文本
a{click me}
● 在父级元素中使用Emmet的缩写
.item
自动补全为:
以此类推,在ul,ol中补li,在table,tbody,thead,tfoot中补tr,在tr中补td,在select中补option
● 举例文本
p*4>lorem
有关css
● -bdrs,自动补全为:
-webkit-border-radius: ;
-moz-border-radius: ;
-ms-border-radius: ;
-o-border-radius: ;
border-radius: ;
● -foo,自动补全为:
-webkit-font: ;
-moz-font: ;
-ms-font: ;
-o-font: ;
font: ;
● -super-foo,自动补全为:
-webkit-super-foo: ;
-moz-super-foo: ;
-ms-super-foo: ;
-o-super-foo: ;
super-foo: ;
● -wm-trf,自动补全为:
-webkit-transform: ;
-moz-transform: ;
transform: ;
● lg(left, #fc0 30%, red),自动补全为:
background-image: -webkit-linear-gradient(left, #fc0 30%, red);
background-image: -o-linear-gradient(left, #fc0 30%, red);
background-image: linear-gradient(to right, #fc0 30%, red);
● border-image: lg(left, #fc0 30%, red),自动补全为:
background-image: border-image: -webkit-linear-gradient(left, #fc0 30%, red);
background-image: border-image: -o-linear-gradient(left, #fc0 30%, red);
background-image: border-image: linear-gradient(to right, #fc0 30%, red);
● ovh,自动补全为:
overflow: hidden;
有关操作
● 向外选择
ctrl+alt+B
● 向内选择
ctrl+alt+shift+B
● 成对元素标签之间跳转
ctrl+shift+T
● 包裹现有元素
现有:
Hello World
→ 把鼠标放在第一个p和>之间
→ ctrl+shif+A
→ 输入:.wrapper>h1{Title}+.content
→ 确认
Title
当然也可以选择多行元素,再进行包裹。
● 前一个编辑节点
ctrl+alt+left
● 下一个编辑节点
ctrl+alt+right
● 依次向后选择元素
ctrl+shift+.
● 依次向前选择元素
ctrl+shift+,
● 注释取消注释
ctrl+/
● 移除标签
ctrl+shift+K
● 合并多行
ctrl+shift+M
● 改变数值大小
ctrl+shif+方向键,以10为单位
ctrl+shift+alt+方向键,以0.1为单位
参考资料:http://docs.emmet.io/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.
