css - 如何更改字体大小?

标签 css simple-machines-forum

如何更改我的 SMF 论坛主题的字体大小?我看到仅更改文本某些部分的百分比,找不到更改帖子字体、线程字体等的位置...

请指出正确的方向,还有 xx%/yy% 对字体意味着什么?

 /* SMFSimple.com Theme Style */

    body
     {
        background: url(../images/theme/bg.png) #f8f8f8;
   font: 78%/130% 'Oxygen',sans-serif;
   padding: 0px;
}

a:link, a:visited {color: #4D4D4D;}
a.new_win:link, a.new_win:visited {color: #4D4D4D;}

input, button, select, textarea
{
   font: 95%/115% 'Oxygen',sans-serif;
   color: #000;
   background: #fff;
   border: 1px solid #7f9db9;
}

textarea
{
   font: 100%/130% 'Oxygen',sans-serif;
}

.smalltext, tr.smalltext th
{
   font-size: 0.85em;
   font-family: 'Oxygen',sans-serif;
}
.middletext
{
   font-size: 0.9em;
   line-height: 1em;
   font-family: 'Oxygen',sans-serif;
}
.normaltext
{
   font-size: 1em;
   line-height: 1.2em;
}
.largetext
{
   font-size: 1.4em;
}

code.bbc_code
{
   display: block;
   font-family: 'Oxygen',sans-serif;
   font-size: x-small;
   background: #eef;
   border-top: 2px solid #999;
   border-bottom: 2px solid #999;
   line-height: 1.5em;
   padding: 3px 1em;
   overflow: auto;
   white-space: nowrap;
   /* Show a scrollbar after about 24 lines. */
   max-height: 24em;
}

.bbc_tt
{
   font-family: 'Oxygen',sans-serif;
}

@font-face {
  font-family: 'Oxygen';
  font-style: normal;
  font-weight: 400;
  src: local('Oxygen'), local('OpenSans'), url(../fonttheme.woff) format('woff');
}

#full_header 
{
   margin: 0 auto;   
   min-width: 764px;
   max-width: 2300px;      
}

#bar_social 
{
   background: rgba(255, 255, 255, 0.7);
   height: 50px;
   border: 1px solid #e8e8e8;
}

.ss_content_header
{
   clear: both; 
   overflow: hidden; 
   width: 100%;
   padding: 20px 0px;
   padding: 20px 0px;
}

.ss_logo 
{ 
   width: 48%; 
   float: left; 
   margin-top: 10px;
   padding-left: 20px;
}

.ss_user_area 
{ 
   width: 48%;
   float: left;
   margin-top: 15px;
}


.table_user 
{
   border-radius: 5px;
   background: rgba(00, 00, 00, 0.7);
   padding: 0px 10px;
   font-size: 12px;
   border: 1px solid #333;
   text-shadow: 0px 1px 1px #666;   
}

.user 
{
   color: #f4f4f4;
}
.user a 
{
   color: #F9BC06;
}

.ss_avatar_pad 
{
   padding-right: 15px;
}

最佳答案

这一行:

font: 78%/130% 'Oxygen',sans-serif;

分解为:

  • 字体大小:78%;
  • 行高:130%;
  • font-family: 'Oxygen', sans-serif;

如果没有明确给出字体大小,则使用浏览器的默认值,实际上是 16px

关于css - 如何更改字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18382688/

相关文章:

php - 如何查询简单机械论坛的主题流行度/评级

php - 在 Ubuntu Server 10 LTS 上设置 MySQL 的最有效方法?

CSS - 在居中的 div 中左对齐最后一行图像

javascript - 如何使用 innerHTML 改变图像大小给它一个 id Javascript?

css - YUI:如何创建一个占据所有可用垂直空间的固定中心对话框

javascript - 如何在html/css/javascript中动态创建两行正方形

css - 使 gmail 和 facebook 登录按钮内联