-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (74 loc) · 1.39 KB
/
style.css
File metadata and controls
87 lines (74 loc) · 1.39 KB
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
78
79
80
81
82
83
84
85
86
87
@font-face {
font-family: 'Qanelas';
src: url('fonts/Qanelas-Bold.otf') format('truetype');
/* 确保路径正确 */
}
body {
text-align: center;
font-family: Arial, sans-serif;
}
h1 {
margin-bottom: 20px;
}
/* Flexbox 布局 */
.container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
width: 80%;
margin: auto;
}
/* 左侧 Canvas 预览 */
.preview {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
border: 1px solid black;
}
/* 右侧选项 */
.options {
flex: 1;
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
.input-group {
display: flex;
align-items: center;
gap: 10px;
/* 控制文字和按钮的间距 */
width: 100%;
/* 让整个 div 占满父容器 */
}
.input-group span {
width: 100px;
/* 设定固定宽度,让左侧文本对齐 */
text-align: right;
/* 让文本靠右对齐 */
}
button {
padding: 8px 15px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #0056b3;
}
.avatar {
width: 100px;
/* 设置宽度 */
height: 100px;
/* 设置高度 */
border-radius: 50%;
/* 让头像变圆形 */
object-fit: cover;
/* 确保图片不变形 */
}