Skip to content

Commit e7562da

Browse files
committed
fix contenteditable
1 parent e38f9a0 commit e7562da

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

index.html

+43-41
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
border: solid 1px rgba(0, 0, 0, 0.2);
2828
border-radius: 2rem;
2929
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
30-
margin: 4rem 0 6rem 0;
30+
margin: 2rem 0 4rem 0;
3131
padding: 1rem;
3232
white-space: nowrap;
3333
}
@@ -43,7 +43,7 @@
4343
}
4444
textarea {
4545
font-size: 16px;
46-
margin-bottom: 4rem;
46+
margin-bottom: 2rem;
4747
overflow: hidden;
4848
resize: none;
4949
text-align: center;
@@ -75,105 +75,107 @@
7575
<table id="pass">
7676
<tr>
7777
<th contenteditable="true" colspan="5" rowspan="2">
78-
Nice Boat Airlines
78+
<span contenteditable="true">Nice Boat Airlines</span>
7979
</th>
8080
<th class="divider" rowspan="6"></th>
8181
<th rowspan="6"></th>
82-
<th contenteditable="true" colspan="2">Nice Boat Airlines</th>
82+
<th colspan="2">
83+
<span contenteditable="true">Nice Boat Airlines</span>
84+
</th>
8385
</tr>
8486
<tr>
85-
<td contenteditable="true">
87+
<td>
8688
<small>Class</small>
8789
<br />
88-
<strong>A</strong>
90+
<strong contenteditable="true">A</strong>
8991
</td>
90-
<td contenteditable="true">
92+
<td>
9193
<small>Seat</small>
9294
<br />
93-
<strong>01A</strong>
95+
<strong contenteditable="true">01A</strong>
9496
</td>
9597
</tr>
9698
<tr>
97-
<td contenteditable="true" colspan="5">
99+
<td colspan="5">
98100
<small>Name</small>
99101
<br />
100-
<strong>Kusa Zhang</strong>
102+
<strong contenteditable="true">Kusa Zhang</strong>
101103
</td>
102-
<td contenteditable="true" colspan="2">
103-
<strong>Kusa Zhang</strong>
104+
<td colspan="2">
105+
<strong contenteditable="true">Kusa Zhang</strong>
104106
<br />
105-
<strong>E14514</strong>
107+
<strong contenteditable="true">E14514</strong>
106108
</td>
107109
</tr>
108110
<tr>
109-
<td contenteditable="true">
111+
<td>
110112
<small>Flight</small>
111113
<br />
112-
<strong>E14514</strong>
114+
<strong contenteditable="true">E14514</strong>
113115
</td>
114-
<td contenteditable="true">
116+
<td>
115117
<small>Date</small>
116118
<br />
117-
<strong>9 Mar</strong>
119+
<strong contenteditable="true">9 Mar</strong>
118120
</td>
119-
<td contenteditable="true">
121+
<td>
120122
<small>At</small>
121123
<br />
122-
<strong>13:15</strong>
124+
<strong contenteditable="true">13:15</strong>
123125
</td>
124-
<td contenteditable="true">
126+
<td>
125127
<small>Class</small>
126128
<br />
127-
<strong>A</strong>
129+
<strong contenteditable="true">A</strong>
128130
</td>
129-
<td contenteditable="true">
131+
<td>
130132
<small>Seat</small>
131133
<br />
132-
<strong>01A</strong>
134+
<strong contenteditable="true">01A</strong>
133135
</td>
134-
<td contenteditable="true">
136+
<td>
135137
<small>
136138
From
137139
<br />
138140
To
139141
</small>
140142
</td>
141-
<td contenteditable="true">
143+
<td>
142144
<small class="black">
143-
Baidi
145+
<span contenteditable="true">Baidi</span>
144146
<br />
145-
Jiangling
147+
<span contenteditable="true">Jiangling</span>
146148
</small>
147149
</td>
148150
</tr>
149151
<tr>
150-
<td contenteditable="true" colspan="2">
152+
<td colspan="2">
151153
<small>From</small>
152154
<br />
153-
<strong>Baidi</strong>
155+
<strong contenteditable="true">Baidi</strong>
154156
<br />
155-
<small class="margin">BDI</small>
157+
<small contenteditable="true" class="margin">BDI</small>
156158
</td>
157-
<td contenteditable="true" colspan="3">
159+
<td colspan="3">
158160
<small>To</small>
159161
<br />
160-
<strong>Jiangling</strong>
162+
<strong contenteditable="true">Jiangling</strong>
161163
<br />
162-
<small class="margin">JLN</small>
164+
<small contenteditable="true" class="margin">JLN</small>
163165
</td>
164-
<td contenteditable="true"><strong>9 Mar</strong></td>
165-
<td contenteditable="true"><strong>13:15</strong></td>
166+
<td><strong contenteditable="true">9 Mar</strong></td>
167+
<td><strong contenteditable="true">13:15</strong></td>
166168
</tr>
167169
<tr>
168-
<td contenteditable="true">
170+
<td>
169171
<small>Sequence</small>
170172
<br />
171-
<strong>0005</strong>
173+
<strong contenteditable="true">0005</strong>
172174
</td>
173-
<td contenteditable="true" colspan="2">
175+
<td colspan="2">
174176
<small>Boarding Time</small>
175177
<br />
176-
<strong>12:45</strong>
178+
<strong contenteditable="true">12:45</strong>
177179
</td>
178180
<td class="poem" colspan="2">
179181
<span id="poem">
@@ -186,8 +188,8 @@
186188
■Ⅲ 輕舟已過萬重山■|Ⅱ</span
187189
><span class="upper"></span>
188190
</td>
189-
<td contenteditable="true"><small>Sequence</small></td>
190-
<td contenteditable="true"><small class="black">0005</small></td>
191+
<td><small>Sequence</small></td>
192+
<td><small contenteditable="true" class="black">0005</small></td>
191193
</tr>
192194
</table>
193195
<textarea id="aera" rows="4">

0 commit comments

Comments
 (0)