回答編集履歴

1

わかりやすく

2016/07/31 10:11

投稿

realizerS
realizerS

スコア265

test CHANGED
@@ -3,3 +3,151 @@
3
3
 
4
4
 
5
5
  面倒ならアイコンフォントを使っちゃうほうが速い気もします。
6
+
7
+
8
+
9
+ 追記
10
+
11
+
12
+
13
+ ```html
14
+
15
+ <div class="heart">
16
+
17
+ <div class='heart-inner'>
18
+
19
+ </div>
20
+
21
+ </div>
22
+
23
+ ```
24
+
25
+
26
+
27
+ ```css
28
+
29
+ .heart{
30
+
31
+ position: relative;
32
+
33
+ width: 200px;
34
+
35
+ height: 200px;
36
+
37
+ -webkit-transform: rotate(45deg);
38
+
39
+ -moz-transform: rotate(45deg);
40
+
41
+ -ms-transform: rotate(45deg);
42
+
43
+ -o-transform: rotate(45deg);
44
+
45
+ transform: rotate(45deg);
46
+
47
+ background-color: rgba(250,184,66, 1);
48
+
49
+ }
50
+
51
+ .heart:before,
52
+
53
+ .heart:after{
54
+
55
+ position: absolute;
56
+
57
+ width: 200px;
58
+
59
+ height: 200px;
60
+
61
+ content: '';
62
+
63
+ -webkit-border-radius: 50%;
64
+
65
+ -moz-border-radius: 50%;
66
+
67
+ -o-border-radius: 50%;
68
+
69
+ border-radius: 50%;
70
+
71
+ background-color: rgba(250,184,66, 1);
72
+
73
+ }
74
+
75
+ .heart:before{
76
+
77
+ bottom: 0px;
78
+
79
+ left: -100px;
80
+
81
+ }
82
+
83
+ .heart:after{
84
+
85
+ top: -100px;
86
+
87
+ right: 0px;
88
+
89
+ }
90
+
91
+
92
+
93
+
94
+
95
+ .heart-inner{
96
+
97
+ z-index: 10;
98
+
99
+ position: relative;
100
+
101
+ width: 190px;
102
+
103
+ height: 190px;
104
+
105
+ background-color: white;
106
+
107
+ top: 5px;
108
+
109
+ left: 5px;
110
+
111
+ }
112
+
113
+ .heart-inner:before,
114
+
115
+ .heart-inner:after{
116
+
117
+ position: absolute;
118
+
119
+ width: 190px;
120
+
121
+ height: 190px;
122
+
123
+ content: '';
124
+
125
+ -webkit-border-radius: 50%;
126
+
127
+ -moz-border-radius: 50%;
128
+
129
+ -o-border-radius: 50%;
130
+
131
+ border-radius: 50%;
132
+
133
+ background-color: white;
134
+
135
+ }
136
+
137
+ .heart-inner:before{
138
+
139
+ bottom: 0px;
140
+
141
+ left: -100px;
142
+
143
+ }
144
+
145
+ .heart-inner:after{
146
+
147
+ top: -100px;
148
+
149
+ right: 0px;
150
+
151
+ }
152
+
153
+ ```