質問編集履歴
1
現状のコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,167 @@
|
|
11
11
|
・タイトル枠の最後以外は右端が三角の形になる。リストの最後の内容のタイトルには角が無い。
|
12
12
|
|
13
13
|
・内容のボックスの高さは画像は揃えてないが揃えても問題ない。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```ここに言語を入力
|
20
|
+
|
21
|
+
<!DOCTYPE html>
|
22
|
+
|
23
|
+
<html lang="ja">
|
24
|
+
|
25
|
+
<head>
|
26
|
+
|
27
|
+
<meta charset="utf-8">
|
28
|
+
|
29
|
+
<title>list test</title>
|
30
|
+
|
31
|
+
<style>
|
32
|
+
|
33
|
+
li.flex-item1 h1:first-child {
|
34
|
+
|
35
|
+
padding-left: 1em;
|
36
|
+
|
37
|
+
border-radius: 5px 0 0 5px;
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
li.flex-item1 h1::after,
|
42
|
+
|
43
|
+
li.flex-item1 h1::before {
|
44
|
+
|
45
|
+
position: absolute;
|
46
|
+
|
47
|
+
top: 50%;
|
48
|
+
|
49
|
+
right: -1.5em;
|
50
|
+
|
51
|
+
margin-top: -1.48em;
|
52
|
+
|
53
|
+
content: '';
|
54
|
+
|
55
|
+
border-top: 1.48em solid transparent;
|
56
|
+
|
57
|
+
border-bottom: 1.48em solid transparent;
|
58
|
+
|
59
|
+
border-left: 1.5em solid;
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
ul {
|
64
|
+
|
65
|
+
display: flex;
|
66
|
+
|
67
|
+
padding:0;
|
68
|
+
|
69
|
+
margin:0;
|
70
|
+
|
71
|
+
list-style: none;
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
min-width:200px;
|
76
|
+
|
77
|
+
flex-wrap: wrap;
|
78
|
+
|
79
|
+
display: flex;
|
80
|
+
|
81
|
+
flex-direction: row;
|
82
|
+
|
83
|
+
justify-content: center;
|
84
|
+
|
85
|
+
align-items: stretch;
|
86
|
+
|
87
|
+
align-items: flex-start;
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
li {
|
94
|
+
|
95
|
+
padding:0;
|
96
|
+
|
97
|
+
margin:0;
|
98
|
+
|
99
|
+
background-color:lightgrey;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
h1.flex-title{
|
106
|
+
|
107
|
+
font-size:110%;
|
108
|
+
|
109
|
+
background-color: orange;
|
110
|
+
|
111
|
+
padding:0;
|
112
|
+
|
113
|
+
margin:0;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
.flex-item1 {
|
118
|
+
|
119
|
+
margin-bottom:20px;
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
</style>
|
126
|
+
|
127
|
+
</head>
|
128
|
+
|
129
|
+
<body>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<ul>
|
134
|
+
|
135
|
+
<li class="flex-item1">
|
136
|
+
|
137
|
+
<h1 class="flex-title">Title 1</h1>
|
138
|
+
|
139
|
+
xxxxxxxxxxxx</br>
|
140
|
+
|
141
|
+
xxxxxxxxxxx</br>
|
142
|
+
|
143
|
+
xxxxxxxxxxxxxxxxx</li>
|
144
|
+
|
145
|
+
<li class="flex-item1">
|
146
|
+
|
147
|
+
<h1 class="flex-title">Title 2</h1>
|
148
|
+
|
149
|
+
xxxxxxxxxxx</li>
|
150
|
+
|
151
|
+
<li class="flex-item1">
|
152
|
+
|
153
|
+
<h1 class="flex-title">Title 3</h1>xxxxxxxxxxx</li>
|
154
|
+
|
155
|
+
<li class="flex-item1">
|
156
|
+
|
157
|
+
<h1 class="flex-title">Title 1</h1>
|
158
|
+
|
159
|
+
xxxxxxxxxxx</li>
|
160
|
+
|
161
|
+
<li class="flex-item1">
|
162
|
+
|
163
|
+
<h1 class="flex-title">Title 2</h1>
|
164
|
+
|
165
|
+
xxxxxxxxxxx</li>
|
166
|
+
|
167
|
+
<li class="flex-item1">
|
168
|
+
|
169
|
+
<h1 class="flex-title">Title 3</h1>xxxxxxxxxxx</li>
|
170
|
+
|
171
|
+
</ul>
|
172
|
+
|
173
|
+
</body>
|
174
|
+
|
175
|
+
</html>
|
176
|
+
|
177
|
+
```
|