css设置宋体(css字体设置为宋体)
1. css字体设置为宋体
样式一:
body {undefined
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: "Times New Roman", Times, serif;
font-size: 14px;
color: #000000;
background: #f2e7ca url(images/templatemo_body.jpg) top center no-repeat;
}
样式二:
body {undefined
background:#2f373a;
font-family:Arial,Helvetica,sans-serif;font-size:100%;
line-height:1em;color:#4e4e4e;
min-width:920px;
border-top:10px solid #0c0e0e
}
样式三:
body {undefined
font-family:Arial,Helvetica,sans-serif;
font-size:1em;
vertical-align:middle;
font-weight:normal
}
样式四:
body
{undefined
margin:0px;
padding:0px;
background-color:#E7EAEB;
font-family:"微软雅黑","黑体","宋体";
font-size:12px;
height:36px;
}
样式五:
body
{undefined
font: .8em Arial, Tahoma, Verdana;
background: #fff url(../images/bg.gif) repeat-x;
color: #777;
}
样式六:
body
{undefined
width:auto; margin-top:12px;
float:right; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:11px;
color:#999999;
line-height:25px;
letter-spacing:1px
}
样式七:
body
{undefined
width:auto;
margin-left:1px;
float:left;
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
color:#5f5f5f;
line-height:35px;
text-transform:uppercase
}
样式八:
body {undefined
background: #e1e5e8;
font-family: "Georgia", Tahoma, Sans-Serif;
font-size: 12px;line-height: 18px;
color: #888;
}
样式九:
body
{undefined
width:130px; height:20px;
background:url(images/servicesbg.gif) 0 0 repeat-x #68EF00;
color:#317400;
font:18px/14px Georgia, "Times New Roman", Times, serif;
margin:34px 0 0 37px;
}
样式十:
body
{undefined
display:block;
width:94px;
height:20px;
background: url(images/serviceslink1bg.gif) 0 72% no-repeat #6DFD00;
color:#01699F;
font:13px/20px Georgia, "Times New Roman", Times, serif; text-decoration:none;
}
样式十一:
body {undefined
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;color: #33322e;background: #39443D url(images/templatemo_body_bg.jpg) repeat-x;
/* background: #47443c url(images/templatemo_body_bg_2.jpg) repeat-x; */
}
样式十二:
body {margin: 0;padding: 0;line-height: 1.5em;font-family: Tahoma, Geneva, sans-serif;font-size: 12px;color: #6f6f6f;
background: #2ac5c0 url(images/templatemo_body_top.jpg) repeat-x;
}
样式十三:
body {undefined
margin: 0;
padding: 0;
line-height: 1.5em;
font-family: Verdana, Geneva, sans-serif;font-size: 11px;
color: #ffffff;background: #005b7f;
}
样式十四:
body {undefined
margin: 0;
padding: 0;
line-height: 1.7em;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;color: #333333;
background: #000000 url(images/templatemo_main_bg.jpg) repeat-y center;
}
样式十五:
body {undefined
margin: 0;
padding: 0;
line-height: 1.7em;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;color: #707b84;
background: #3e464d;
}
样式十六:
body {undefined
margin: 0;
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;font-size: 12px;
color: #333;
background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;
}
样式十七:
body {undefined
margin: 0;
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;font-size: 12px;
color: #333;
background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;
}
样式十八:
body
{undefined
background:url(images/bg.gif) repeat #000000;
padding:0; font-family:arial, sans-serif; font-size:12px;
margin:0px auto auto auto;
color:#36322b;
}
样式十九:
body
{undefined
margin:0px;
padding:0px;
background:url(images/mainbg.gif) 0 0 repeat-x #F6F4E4;
color:#6B6854;
font:14px/18px "Trebuchet MS", Arial, Helvetica, sans-serif;
}
样式二十:
body
{undefined
font-family:Georgia;
font-family:Arial;
}
2. html字体设置为宋体
1、网页字体样式华文黑体:STHeiti
2、网页字体样式华文楷体:STKaiti
3、网页字体样式华文宋体:STSong
4、网页字体样式华文仿宋:STFangsong
5、网页字体样式黑体:SimHei
6、网页字体样式宋体:SimSun
7、网页字体样式新宋体:NSimSun
8、网页字体样式仿宋:FangSong
9、网页字体样式楷体:KaiTi
10、网页字体样式仿宋_GB2312:FangSong_GB231。
3. css 宋体
css的具体写法如下:
font-family:'宋体‘.
4. 如何将宋体设置为默认字体
CAD怎么修改默认字体
1.
将CAD打开,点击上面的【工具】选项。
2.
然后点击选项卡中的【选项】。
3.
然后打开选项窗口,点击【显示】选项。
4.
然后在里面点击【字体】按钮。
CAD怎么修改默认字体
1.
将CAD打开,点击上面的【工具】选项。
2.
然后点击选项卡中的【选项】。
3.
然后打开选项窗口,点击【显示】选项。
4.
然后在里面点击【字体】按钮。
5. css字体设置为宋体模式
对font的定义参数必须按照如下的排列顺序。每个参数仅允许有一个值。忽略的将使用其参数对应的独立属性的默认值:
font : font-style || font-variant || font-weight || font-size ||line-height || font-family
例子:p { font: italic small-caps 600 12pts/18pts 宋体; }
6. 字体的默认格式为宋体
PPT默认是宋体,但是使用微软雅黑显示效果最好,更容易看清楚。
7. css怎么设置字体为宋体
在<head>...</head>之间插入 <fontbase family=""> 引号之间为字体. 要让每个人打开都为同样的字体,除非每个人都装有你设置的字体,否则显示为宋体.
8. css中设置字体
html
Hello World!
2.CSS .div{ /*设置该div为左浮动(可以理解为修改div默认排列,默认是纵向,浮动为横向,一个div看不出效果!)*/ float:left; /*下面两个:将子div垂直居中,于父div(由于没有设置该子div高度宽度,所以子div为自适应) 千万注意:父div,也就是使用该css的那个div一定要设置为“正方形”,width=height的像素,如果发现图片和文本并没有贴在一起,那么设置图片宽高和这个div一样即可*/ display:flex; align-items:center; }
9. css字体怎么设置宋体
Css可以设置网页的样式,比如字体大小颜色等等。今天小编就来分享一下设置HTML网页字体类型大小和颜色方法。
一、如图,先在HTML网页编写一些测试的文字。
二、然后在网页预览文字初始的字体效果,颜色是黑色,大小比较小。
三、因为测试文字是在body标签内的,所以我们要对body标签设置css属性就可以了。
四、如图,我们可以用font-family来设置HTML网页字体的类型,比如这里我设置为“华文楷体”。
五、再去看文字的变化效果,文字变成了华文楷体类型,比原先的好看多了。
六、然后color可以改变文字的颜色,比如我就设置它为red,意思表示的是红颜色。
七、这样,文字的颜色就会由黑色变成红色了哦。
八、而font-size可以设置文字的大小,如图所示,我设置成38px,表示38像素大小。
九、最后来看看,文字变得比原来大了很多。这样我们就实现了设置HTML文字的类型,颜色及大小的目的。