質問編集履歴
2
コードを載せました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
phpのthe_content()の一つ一つのpタグの下にdottedのアンダーラインを引きたいのですが、pタグのcssを編集しても反映されません。
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -9,3 +9,139 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
後に書いたcssが適用されるのになぜリセットcssが適用されるのでしょうか?
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
```CSS
|
16
|
+
|
17
|
+
html, body, div, span, applet, object, iframe,
|
18
|
+
|
19
|
+
h1, h2, h3, h4, h5, h6,p, blockquote, pre,
|
20
|
+
|
21
|
+
a, abbr, acronym, address, big, cite, code,
|
22
|
+
|
23
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
24
|
+
|
25
|
+
small, strike, strong, sub, sup, tt, var,
|
26
|
+
|
27
|
+
b, u, i, center,
|
28
|
+
|
29
|
+
dl, dt, dd, ol, ul, li,
|
30
|
+
|
31
|
+
fieldset, form, label, legend,
|
32
|
+
|
33
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
34
|
+
|
35
|
+
article, aside, canvas, details, embed,
|
36
|
+
|
37
|
+
figure, figcaption, footer, header, hgroup,
|
38
|
+
|
39
|
+
menu, nav, output, ruby, section, summary,
|
40
|
+
|
41
|
+
time, mark, audio, video {
|
42
|
+
|
43
|
+
margin: 0;
|
44
|
+
|
45
|
+
padding: 0;
|
46
|
+
|
47
|
+
border: 0;
|
48
|
+
|
49
|
+
font-style:normal;
|
50
|
+
|
51
|
+
font-weight: normal;
|
52
|
+
|
53
|
+
font-size: 100%;
|
54
|
+
|
55
|
+
vertical-align: baseline;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
```CSS
|
62
|
+
|
63
|
+
/*
|
64
|
+
|
65
|
+
========================================
|
66
|
+
|
67
|
+
contents
|
68
|
+
|
69
|
+
=========================================
|
70
|
+
|
71
|
+
*/
|
72
|
+
|
73
|
+
.contents{
|
74
|
+
|
75
|
+
float:left;
|
76
|
+
|
77
|
+
width:72%;
|
78
|
+
|
79
|
+
height:850px;
|
80
|
+
|
81
|
+
margin-top:31px;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
.content h1{
|
88
|
+
|
89
|
+
width:100%;
|
90
|
+
|
91
|
+
font-size:15px;
|
92
|
+
|
93
|
+
font-weight: bold;
|
94
|
+
|
95
|
+
border-left:10px solid #023a96;
|
96
|
+
|
97
|
+
border-bottom:4px solid #d1d1d1;
|
98
|
+
|
99
|
+
padding:8px 0 8px 15px;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
article p {
|
108
|
+
|
109
|
+
padding-top:15px;
|
110
|
+
|
111
|
+
padding-bottom:15px;
|
112
|
+
|
113
|
+
border-bottom:1px dotted #d0d0d0 ;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
```index.php
|
122
|
+
|
123
|
+
<div class="contents">
|
124
|
+
|
125
|
+
<div class="content">
|
126
|
+
|
127
|
+
<?php if(have_posts()):
|
128
|
+
|
129
|
+
while(have_posts()):
|
130
|
+
|
131
|
+
the_post(); ?>
|
132
|
+
|
133
|
+
<article <?php post_class(); ?>>
|
134
|
+
|
135
|
+
<h1><?php the_title(); ?></h1>
|
136
|
+
|
137
|
+
<?php the_content(); ?>
|
138
|
+
|
139
|
+
</article>
|
140
|
+
|
141
|
+
<?php endwhile; endif; ?>
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
</div>
|
146
|
+
|
147
|
+
```
|
1
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|