Hello World
当在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/

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 using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

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

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

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

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.

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit


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

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
