lnd 2008-10-5 18:34
如何更改文章的字体大小?
刚刚做好了一个WP博客,发了一篇文章,但是文章字体很小,想把字体改大一点,是在style.css里改吗?
这是body的一段代码:
/* Body
-------------------------------------------------------------------*/
body {
font: 12px/18px Verdana, Helvetica, Arial, Geneva, sans-serif;
color: #333;
background: #728776 url(images/bg.gif) repeat-x;
}
h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", Helvetica, Arial, Geneva, Sans-Serif; color: #414d4c; }
h1 { font-size: 22px; line-height: 26px; margin-bottom: 10px; }
h2 { font-size: 20px; line-height: 24px; margin-bottom: 7px; }
h3 { font-size: 18px; line-height: 22px; margin-bottom: 5px; }
h4 { font-size: 16px; line-height: 20px; margin-bottom: 5px; }
h5 { font-size: 14px; line-height: 18px; margin-bottom: 5px; }
h6 { font-size: 12px; line-height: 16px; margin-bottom: 5px; }
h1 span { color: #999; }
a { color: #3b5a4a; }
a:hover { color: #3b5a4a; }
a:visited { color: #3b5a4a; }
p { margin-bottom: 10px; }
input, textarea { font: 12px Verdana, Helvetica, Arial, Geneva, sans-serif; }
blockquote {
font: italic 14px/22px Georgia, Serif;
padding: 5px 10px;
margin-bottom: 20px;
background: #e4ede2;
}
slyar 2008-10-5 18:55
font: 12px/18px
不同的地方要改不同的类~
比如文章内容应该在contents里~~~
lnd 2008-10-5 19:16
/* Comments
-------------------------------------------------------------------*/
.comments-title {
text-align: center;
font: bold 22px "Trebuchet MS", Helvetica, Arial, Geneva;
color: #414d4c;
}
#comments .comment {
background: #bfcec3;
margin-bottom: 10px;
overflow: hidden;
width: 635px;
padding-bottom: 5px;
}
#comments .comment .comment-avatar {
float: left;
width: 50px;
padding: 5px 7px;
}
#comments .comment .comment-content {
float: left;
padding: 10px 15px;
margin: 5px 5px 0 0;
width: 536px;
background: #d6ded4;
}
#comments .comment .comment-content a { color: #444; }
#comments .comment .comment-info {
font-size: 11px;
color: #777;
margin-bottom: 5px;
}
#comments .comment .comment-info span {
font: bold 20px "Trebuchet MS", Helvetica, Arial, Geneva;
padding-right: 10px;
margin-bottom: 5px;
}
#comments .comment .comment-info a {
color: #444;
text-decoration: none;
}
文章内容的字体大小改哪个?
gyk52l 2008-10-5 21:58
#content {
font-size:1.4em;float:left;width:640px;margin:0px;padding:0;overflow:hidden;padding-bottom:14px;}
font-size:1.4em就是大小,你的可能是px
伊迭 2008-10-5 23:26
#content {position:relative; width:990px; margin:0 auto; text-align:left;}
我也想改改,但是这里找不到font-size....
打篮球的手 2008-10-5 23:47
回复 7# 的帖子
根据990px的宽度来看,不是改这个,你看看#entry里有没有font,如果没有自己加一个。
kyan 2008-10-6 07:38
有些主题的CSS里没有正文字号的设定,就是默认的10磅吧?