-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNAND.html
77 lines (70 loc) · 1.69 KB
/
NAND.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>通用逻辑门示例</title>
<style>
.logic-gate {
position: relative;
width: 100px;
height: 60px;
margin: 50px auto;
}
.gate-body {
position: absolute;
width: 60px;
height: 60px;
border: 3px solid #333;
border-radius: 10px;
left: 20px;
}
.input-1, .input-2 {
position: absolute;
width: 20px;
height: 2px;
background: #333;
left: 0;
}
.input-1 {
top: 20px;
}
.input-2 {
top: 40px;
}
.output {
position: absolute;
width: 20px;
height: 2px;
background: #333;
right: 0;
top: 30px;
}
.nand-circle {
position: absolute;
width: 10px;
height: 10px;
border: 2px solid #333;
border-radius: 50%;
right: -7px;
top: 26px;
background: white;
}
.gate-label {
text-align: center;
margin-top: 70px;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div class="logic-gate">
<div class="gate-body"></div>
<div class="input-1"></div>
<div class="input-2"></div>
<div class="output"></div>
<div class="nand-circle"></div>
<div class="gate-label">NAND 门</div>
</div>
</body>
</html>