Skip to content

Commit 86823c4

Browse files
committed
css实现线条纸张
1 parent 47cf7ce commit 86823c4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>线条纸张</title>
6+
<style>
7+
.container {
8+
min-height: 100px;
9+
padding: 10px 20px;
10+
border: 1px solid #333;
11+
}
12+
.page {
13+
background-image: linear-gradient(#ddd 1px, #fff 0);
14+
background-size: 100% 35px;
15+
background-position-y: 34px;
16+
line-height: 35px;
17+
font-size: 14px;
18+
}
19+
</style>
20+
</head>
21+
<body>
22+
<div class="container">
23+
<div class="page">
24+
line1......<br/>
25+
......line 2...... <br/>
26+
line 3...... <br/>
27+
......
28+
</div>
29+
</div>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)