Home > Web Front-end > HTML Tutorial > css字体定义_html/css_WEB-ITnose

css字体定义_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:18:22
Original
1385 people have browsed it

css如何定义标签字体

例如:139site 搜索框定义:

.s_btn_return {
background:url(../image/sprite.png) no-repeat;
 cursor: pointer;
 height: 53px;
 width: 91px;
 float:left; line-height:53px; text-align:center; font-size:22px;  font-family: "微软雅黑","黑体","宋体";
}
注意这段代码:font-family: "微软雅黑","黑体","宋体";
就是css定义字体,从左到右如果客户端有  "微软雅黑"将调用 "微软雅黑"这个字体,没有,将调用“黑体”。如果没有“黑体”只能调用“宋体”了

css2.0参考手册
 

 

华文细黑:STHeiti Light [STXihei]
华文黑体:STHeiti
华文楷体:STKaiti
华文宋体:STSong
华文仿宋:STFangsong
俪黑 Pro:LiHei Pro Medium
俪宋 Pro:LiSong Pro Light
标楷体:BiauKai
苹果俪中黑:Apple LiGothic Medium
苹果俪细宋:Apple LiSung Light
Windows的一些:
新细明体:PMingLiU
细明体:MingLiU
标楷体:DFKai-SB
黑体:SimHei
宋体:SimSun
新宋体:NSimSun
仿宋:FangSong
楷体:KaiTi
仿宋_GB2312:FangSong_GB2312
楷体_GB2312:KaiTi_GB2312
微软正黑体:Microsoft JhengHei
微软雅黑体:Microsoft YaHei
装Office会生出来的一些:
隶书:LiSu
幼圆:YouYuan
华文细黑:STXihei
华文楷体:STKaiti
华文宋体:STSong
华文中宋:STZhongsong
华文仿宋:STFangsong
方正舒体:FZShuTi
方正姚体:FZYaoti
华文彩云:STCaiyun
华文琥珀:STHupo
华文隶书:STLiti
华文行楷:STXingkai
华文新魏:STXinwei

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template