-
Notifications
You must be signed in to change notification settings - Fork 0
/
pic.css
90 lines (89 loc) · 1.23 KB
/
pic.css
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
88
89
90
body{
background: #333;
}
#box{
position: absolute;
top:100px;
left: 100px;
width: 865px;
height: 589px;
}
#imga{
opacity: 0.5;
position: absolute;
top:0;
left: 0;
}
#imgb{
position: absolute;
top:0;
left: 0;
clip: rect(0,200px,200px,0);/*top,right,buttom,left*/
}
#preview{
position: absolute;
width: 200px;
height: 200px;
top:100px;
left: 1000px;
}
#preview img{
position: absolute;
}
#main{
border: 1px solid #fff;
width: 200px;
height: 200px;
position: absolute;
cursor: move;
}
.minDiv{/*position is half parent width sub half self*/
position: absolute;
width: 8px;
height: 8px;
background: #fff;
}
.top-left{
top:-4px;
left: -4px;
cursor: nw-resize;
}
.top{
left: 50%;
margin-left: -4px;
top: -4px;
cursor: n-resize;
}
.top-right{
right: -4px;
top:-4px;
cursor: ne-resize;
}
.right{
right: -4px;
top:50%;
margin-top:-4px;
cursor: e-resize;
}
.right-bottom{
right: -4px;
bottom:-4px;
cursor: se-resize;
}
.bottom{
bottom:-4px;
left: 50%;
margin-left: -4px;
cursor: s-resize;
}
.left-bottom{
left: -4px;
bottom: -4px;
cursor: sw-resize;
}
.left{
left: -4px;
top:50%;
margin-top: -4px;
cursor: w-resize;
}