質問編集履歴

4

実現したいことに追記しました。

2016/05/07 11:52

投稿

s-plus-s
s-plus-s

スコア18

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- それぞれのパーツのtableを塗ると全体像のテーブルも同時にぬりつぶされる、というイメージです。
15
+ それぞれのtableを塗ると対応した別のテーブルも同時にぬりつぶされる、というイメージです。
16
16
 
17
17
 
18
18
 

3

htmlを追記

2016/05/07 11:52

投稿

s-plus-s
s-plus-s

スコア18

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,13 @@
6
6
 
7
7
  iOS,androidでtouchmoveを動作させ、指でなぞったマス全てを塗りつぶしたいです。
8
8
 
9
-
9
+ また、違うテーブルの対応したマスも同時に塗りつぶします。
10
+
11
+ (.body_x またはsleeve_x)
12
+
13
+
14
+
15
+ それぞれのパーツのtableを塗ると全体像のテーブルも同時にぬりつぶされる、というイメージです。
10
16
 
11
17
 
12
18
 
@@ -42,6 +48,48 @@
42
48
 
43
49
  </div>
44
50
 
51
+
52
+
53
+ <div class="doteditor">
54
+
55
+ <div class="dottlanslate">
56
+
57
+ <table id="canvas3" class="canvas body"></table>
58
+
59
+ </div>
60
+
61
+ <table id="palette"></table>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <div class="doteditor">
68
+
69
+ <div class="dottlanslate">
70
+
71
+ <table id="canvas2" class="canvas body"></table>
72
+
73
+ </div>
74
+
75
+ <table id="palette"></table>
76
+
77
+ </div>
78
+
79
+
80
+
81
+ <div class="doteditor">
82
+
83
+ <div class="dottlanslate">
84
+
85
+ <table id="canvas4" class="canvas body"></table>
86
+
87
+ </div>
88
+
89
+ <table id="palette"></table>
90
+
91
+ </div>
92
+
45
93
  ```
46
94
 
47
95
 

2

初心者マークをつけました。

2016/05/07 11:35

投稿

s-plus-s
s-plus-s

スコア18

test CHANGED
File without changes
test CHANGED
File without changes

1

cssを追記しました。

2016/05/07 00:37

投稿

s-plus-s
s-plus-s

スコア18

test CHANGED
File without changes
test CHANGED
@@ -291,3 +291,127 @@
291
291
  });
292
292
 
293
293
  ```
294
+
295
+ ```lang-css
296
+
297
+ table {
298
+
299
+ border-collapse: collapse;
300
+
301
+ margin-bottom: 16px;
302
+
303
+ }
304
+
305
+ td {
306
+
307
+ border: 1px solid gray;
308
+
309
+ width: 20px;
310
+
311
+ line-height: 20px;
312
+
313
+ cursor: pointer;
314
+
315
+ font-size: 9px;
316
+
317
+ }
318
+
319
+
320
+
321
+ .doteditor{
322
+
323
+ position: relative;
324
+
325
+ width: 370px;
326
+
327
+ height: 400px;
328
+
329
+ z-index: 1;
330
+
331
+ }
332
+
333
+
334
+
335
+ .dottlanslate{
336
+
337
+ width: 320px;
338
+
339
+ height: 320px;
340
+
341
+ }
342
+
343
+
344
+
345
+ .doteditor.table-parent{
346
+
347
+ overflow: visible !important;
348
+
349
+ }
350
+
351
+
352
+
353
+ #canvas{
354
+
355
+ position: absolute;
356
+
357
+ top: 0;
358
+
359
+ left: 0;
360
+
361
+ width: 320px;
362
+
363
+ height: 320px;
364
+
365
+ z-index: 5;
366
+
367
+ }
368
+
369
+
370
+
371
+ #palette{
372
+
373
+ position: absolute;
374
+
375
+ top: 370px;
376
+
377
+ left: 0;
378
+
379
+ z-index: 5;
380
+
381
+ }
382
+
383
+
384
+
385
+ #canvas2{
386
+
387
+ position: absolute;
388
+
389
+ top: 0;
390
+
391
+ left: 0;
392
+
393
+ width: 320px;
394
+
395
+ height: 320px;
396
+
397
+ z-index: 5;
398
+
399
+ }
400
+
401
+
402
+
403
+ #palette2{
404
+
405
+ position: absolute;
406
+
407
+ top: 330px;
408
+
409
+ left: 0;
410
+
411
+ z-index: 5;
412
+
413
+ }
414
+
415
+
416
+
417
+ ```