Skip to content

Commit b076f4d

Browse files
committed
Update README.md
1 parent a6dd73f commit b076f4d

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
本仓库的 CSS 技巧是从我另一个仓库 [blog](https://github.com/lio-zero/blog)[常用的一些 CSS 技巧一](https://github.com/lio-zero/blog/blob/master/CSS/%E5%B8%B8%E7%94%A8%E7%9A%84%E4%B8%80%E4%BA%9B%20CSS%20%E6%8A%80%E5%B7%A7%E4%B8%80.md)[常用的一些 CSS 技巧二 — 选择器(伪类与伪元素)](https://github.com/lio-zero/blog/blob/master/CSS/%E5%B8%B8%E7%94%A8%E7%9A%84%E4%B8%80%E4%BA%9B%20CSS%20%E6%8A%80%E5%B7%A7%E4%BA%8C%20%E2%80%94%20%E9%80%89%E6%8B%A9%E5%99%A8%EF%BC%88%E4%BC%AA%E7%B1%BB%E4%B8%8E%E4%BC%AA%E5%85%83%E7%B4%A0%EF%BC%89.md)整理过来的,目的是为了方便后续的阅读和添加新内容。
44

5+
其他 CSS 内容:
6+
7+
- [CSS](https://github.com/lio-zero/blog#css)
8+
- 关于布局可以查阅 [CSS Layout](https://github.com/lio-zero/blog#css-layout)
9+
10+
## Tricks List
11+
512
- [CSS3 中的 counter](#css3-中的-counter)
613
- [使用 CSS `white-space` 修复文本重叠](#使用-css-white-space-修复文本重叠)
714
- [Flexbox 居中元素](#flexbox-居中元素)

index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Document</title>
8+
<style>
9+
div {
10+
margin-left: 20px;
11+
display: list-item;
12+
list-style-type: square;
13+
}
14+
15+
div ::marker {
16+
}
17+
18+
/* ::marker {
19+
content: 'Step ' counter(list-item) ': ';
20+
} */
21+
22+
input {
23+
-webkit-text-security: circle;
24+
}
25+
</style>
26+
</head>
27+
<body>
28+
<div>1</div>
29+
<div>2</div>
30+
<div>3</div>
31+
32+
<ol>
33+
<li>Item One</li>
34+
<li>Item Two</li>
35+
<li>Item Three</li>
36+
</ol>
37+
38+
<input type="text" />
39+
</body>
40+
</html>

0 commit comments

Comments
 (0)