Skip to content

Commit 0d76ef2

Browse files
committed
feat[ptr]: em 在是 font-size 相对父元素字体大小,非font-size 属性相对当前自身元素字体大小
1 parent 5f8aaae commit 0d76ef2

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Loading

CSS/test/em.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
10+
<body>
11+
<div class="container" style="font-size: 20px;">
12+
<div style="font-size: 1em;">ceilf6</div>
13+
<div style="font-size: 2em; margin-top: 2em;">so handsome</div>
14+
是 font-size 相对父元素字体大小,非font-size 属性相对当前自身元素字体大小
15+
</div>
16+
</body>
17+
18+
</html>

0 commit comments

Comments
 (0)