回答編集履歴

1

別案追加

2020/01/20 01:45

投稿

hatena19
hatena19

スコア33722

test CHANGED
@@ -71,3 +71,71 @@
71
71
 
72
72
 
73
73
  [動作確認用サンプル](https://codepen.io/hatena19/pen/BayYMOv)
74
+
75
+
76
+
77
+ 追記
78
+
79
+ ---
80
+
81
+ 他の方の回答のSVGを使う方法を勉強がてら作成してみましたので紹介します。
82
+
83
+
84
+
85
+ ```html
86
+
87
+ <div class="Icons_Set">
88
+
89
+ <p id="Second_Icon">
90
+
91
+ <svg x=0 y=0 width=76 height=51 style="background-color: #fff">
92
+
93
+ <polygon points="1 1, 50 1, 75 25, 50 50, 1 50" stroke="#b7b7b7" fill="none" stroke-width="1" />
94
+
95
+ </svg>
96
+
97
+ <i class="fas fa-mobile-alt"></i>
98
+
99
+ </p>
100
+
101
+ <p class="Icons_Set_Text">携帯番号
102
+
103
+ </p>
104
+
105
+ </div>
106
+
107
+ ```
108
+
109
+ ```css
110
+
111
+ #Second_Icon {
112
+
113
+ width: 76px;
114
+
115
+ height: 51px;
116
+
117
+ display: inline-block;
118
+
119
+ position: relative;
120
+
121
+ }
122
+
123
+ #Second_Icon i {
124
+
125
+ color: #b7b7b7;
126
+
127
+ font-size: 24px;
128
+
129
+ position: absolute;
130
+
131
+ top: 50%;
132
+
133
+ left: 35%;
134
+
135
+ transform: translate(-50%, -50%);
136
+
137
+ }
138
+
139
+ ```
140
+
141
+ [動作確認用サンプル](https://codepen.io/hatena19/pen/BayYMOv)