gpt4 book ai didi

css - 如何更改字体大小?

转载 作者:行者123 更新时间:2023-11-28 12:28:47 25 4
gpt4 key购买 nike

如何更改我的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com