Blogger Information
Blog 7
fans 0
comment 0
visits 2507
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
markdown和emmet
吴泽方
Original
333 people have browsed it

一、markdown常用语法

1.标题统一用 #

  • 标题 1

  • 标题 2

  • 标题 3

  • 标题 4

  • 标题 5
  • 标题 6
    最终markdown会转为html
    标题一般不宜太深

2.列表

有序列表, 数字开头
1.php第1天
1.1环境搭建
1.2web服务器和术语基础认知
2.php第2天

无序列表, - 横杆开头

  • php第1天
    • 环境搭建
    • web服务器和术语基础认知
  • php第2天

3.单行代码,使用两对 `

UIview *view = [UIview new];

4.多行代码,使用两对```

  1. <?php
  2. function checkVers($str) {
  3. if (condition) {
  4. # code...
  5. }
  6. }
  7. >

5.表格

id name age Email
1 name1 21 testphpsdf@163.com
2 name2 22 testphsdfp@163.com
3 name3 23 testphpsadfasdf@163.com

大致这么写
id | name | age | Email
—|:—|: — |: — |:
1 |name1| 21 | testphpsdf@163.com
2 |name2| 22 | testphsdfp@163.com
3 |name3| 23 |testphpsadfasdf@163.com

二、emmet语法

属性 #id, .class
div是默认标签可以不写, id用#表示,内容用{}包裹
-#box{box}

父子关系
ul>li>a{xxxx}
.title{站点名称}+.url{php中文网}
重复生成:
ul>li>a{首页}
序号: @ $
如:ul.menu>li.item
4>a{item$} 默认从1开始,降序可这么写 ul.menu>li.item*4>a{item$@-5}

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post