質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,137 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
よろしくお願いいたします。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
追記
|
20
|
+
|
21
|
+
```HTML
|
22
|
+
|
23
|
+
<!DOCTYPE html>
|
24
|
+
|
25
|
+
<html>
|
26
|
+
|
27
|
+
<head>
|
28
|
+
|
29
|
+
<meta charset="UTF-8">
|
30
|
+
|
31
|
+
<title>Insert title here</title>
|
32
|
+
|
33
|
+
<link href="css/jquery-ui.min.css" rel="stylesheet" type="text/css" />
|
34
|
+
|
35
|
+
<link href="css/jquery-ui.structure.min.css" rel="stylesheet" type="text/css" />
|
36
|
+
|
37
|
+
<script type="text/javascript" src="js/jquery.min.js"></script>
|
38
|
+
|
39
|
+
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<script type="text/javascript" src="js/mascat.resizable.js"></script>
|
44
|
+
|
45
|
+
<script type="text/javascript" src="js/mascat.draggable.js"></script>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<style type="text/css">
|
50
|
+
|
51
|
+
* {
|
52
|
+
|
53
|
+
margin : 0;
|
54
|
+
|
55
|
+
padding: 0;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.Toolbar {
|
60
|
+
|
61
|
+
height : 1.5em;
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
.Drawing {
|
66
|
+
|
67
|
+
height : 1000px;
|
68
|
+
|
69
|
+
width : 100%;
|
70
|
+
|
71
|
+
background-color: #CCDDFF;
|
72
|
+
|
73
|
+
zoom : 0.5;
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
.Axis {
|
78
|
+
|
79
|
+
position: absolute;
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
.Axis.Horizontal {
|
84
|
+
|
85
|
+
height : 1px;
|
86
|
+
|
87
|
+
width : 100%;
|
88
|
+
|
89
|
+
background-color: #000000;
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
.Axis.Vertical {
|
94
|
+
|
95
|
+
height : 100%;
|
96
|
+
|
97
|
+
width : 1px;
|
98
|
+
|
99
|
+
background-color: #000000;
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
</style>
|
104
|
+
|
105
|
+
</head>
|
106
|
+
|
107
|
+
<body>
|
108
|
+
|
109
|
+
<div class="Toolbar">
|
110
|
+
|
111
|
+
<div>test</div>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<div class="Drawing">
|
116
|
+
|
117
|
+
<div class="Axis Horizontal"></div>
|
118
|
+
|
119
|
+
<div class="Axis Vertical"></div>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<script type="text/javascript">
|
124
|
+
|
125
|
+
jQuery( document ).bind( 'mousemove', function ( evt ) {
|
126
|
+
|
127
|
+
var pos = [ evt.clientX, evt.clientY ];
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
jQuery( '.Drawing .Axis.Horizontal' ).css( 'top', pos[ 1 ] );
|
132
|
+
|
133
|
+
jQuery( '.Drawing .Axis.Vertical' ).css( 'left', pos[ 0 ] );
|
134
|
+
|
135
|
+
} );
|
136
|
+
|
137
|
+
</script>
|
138
|
+
|
139
|
+
</body>
|
140
|
+
|
141
|
+
</html>
|
142
|
+
|
143
|
+
```
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
再現する最低限のコードです
|