当前位置: 网站建设 > 网页设计 > 建站经验 >

CSS教程 所有浏览器中都能正常显示的字体

时间:2013-03-02 03:45来源:未知 作者:admin 点击:

标签:CSS教程 所有浏览器中都能正常显示的字体 CSS(655)字体(24)教程(56)正常(5)div(47)显示(29)都能(2)浏览器(54)所有(5)
div class=font_impact p这是字体:font-family: Impact, Charcoal, sans-serif/p p中文和英文混排test/p pABCDEFGHIJKLMNOPQRSTUVWXYZ/p pabcdefghijklmnopqrstuvwxyz/p p/p /div 共有21种安全字体: font-family: Arial, Helvetica, sans-serif; font-fami
CSS教程 所有浏览器中都能正常显示的字体》文章地址:http://www.tfxk.com/wangyesheji/jianzhanjingyan/0302333X2013.htm

<div class="font_impact">
<p>这是字体:font-family: Impact, Charcoal, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

共有21种安全字体:

font-family: Arial, Helvetica, sans-serif;
font-family: 'Arial Black', Gadget, sans-serif;
font-family: 'Bookman Old Style', serif;
font-family: 'Comic Sans MS', cursive;
font-family: Courier, monospace;
font-family: 'Courier New', Courier, monospace;
font-family: Garamond, serif;
font-family: Georgia, serif;
font-family: Impact,CSS教程 关于网页图片的属性, Charcoal, sans-serif;
font-family: 'Lucida Console', Monaco, monospace;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-family: 'MS Sans Serif', Geneva, sans-serif;
font-family: 'MS Serif', 'New York', sans-serif;
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
font-family: Symbol, sans-serif;
font-family: Tahoma, Geneva, sans-serif;
font-family: 'Times New Roman', Times, serif;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-family: Webdings, sans-serif;
font-family: Wingdings, 'Zapf Dingbats', sans-serif;  

咱们用一个页面形象的展现出来:

<div class=",CSS教程 vertical-align的理解;font_verdana">
<p>这是字体:font-family: Verdana, Geneva, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_couriernew">
<p>这是字体:font-family: 'Courier New', Courier, monospace</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
<,CSS教程 LESS和Sass共同点和区别;/div>

<div class="font_garamond">
<p>这是字体:font-family: Garamond, serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>



<div class="font_lucida_c">
<p>这是字体:font-family: 'Lucida Console', Monaco, monospace</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_symbol">
<p>这是字体:font-family: Symbol, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_palatino">
<p>这是字体:font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_tahoma">
<,CSS教程 CSS让网页文字自动隐藏;p>这是字体:font-family: Tahoma, Geneva, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

以前经常在懊恼中英文混排的问题,英文字体个别都是选用亚洲字体或者Verdana字体,可在和中文混排的时候都不是很幻想,偶尔看到一篇淘宝兄弟的blog,他倡议用Tahoma字体,而且发现淘宝网很快的改用了这种字体。从我上面的截图也能够看出,Tahoma字体在12px下中英文混排是看上去最舒畅的。

<div class="font_bookman">
<p>这是字体:font-family: 'Bookman Old Style', serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>


IE7下截图: --> [网站建设之]CSS教程:所有阅读器中都能畸形显示的字体

<div class="font_mssans">
<p>这是字体:font-family:  'MS Sans Serif', Geneva, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ<,CSS教程 clip属性完全解答;/p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
<html xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>安全字体</title>
<style type="text/css">
<!--
* { font-size:12px}
div { padding:5px 0; border-bottom:1px solid #ccc}
P { margin:3px 0}
.font_arial {font-family: Arial, Helvetica, sans-serif}
.font_arialblack {font-family: 'Arial Black', Gadget, sans-serif;}
.font_bookman {font-family: 'Bookman Old Style', serif;}
.font_comic {font-family: 'Comic Sans MS', cursive;}
.font_courier {font-family: Courier, monospace,CSS控制表格或单元格强制换行,防止表格被英文单;}
.font_couriernew {font-family: 'Courier New', Courier, monospace;}
.font_garamond {font-family: Garamond, serif;}
.font_georgia {font-family: Georgia, serif;}
.font_impact {font-family: Impact, Charcoal, sans-serif;}
.font_lucida_c {font-family: 'Lucida Console', Monaco, monospace;}
.font_lucida_s {font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;}
.font_mssans {font-family: 'MS Sans Serif', Geneva, sans-serif;}
.font_msserif {font-family: 'MS Serif', 'New York', sans-serif;}
,css控制定位的要素.font_palatino {font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;}
.font_symbol {font-family: Symbol, sans-serif;}
.font_tahoma {font-family: Tahoma, Geneva, sans-serif;}
.font_times {font-family: 'Times New Roman', Times, serif;}
.font_trebuchet {font-family: 'Trebuchet MS', Helvetica, sans-serif;}
.font_verdana {font-family: Verdana, Geneva, sans-serif;}
.font_webdings {font-family: Webdings, sans-serif;}
.font_wingdings {font-family: Wingdings,CSS控制input标签需要注意的问题, 'Zapf Dingbats', sans-serif;}
-->
</style>
</head>

Tag:浏览器   字体  ,CSS控制H1不换行; 浏览器   字体  

<div class="font_arialblack">
<p>这是字体:font-family: 'Arial Black', Gadget, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<body>
<div class="font_arial">
<p>这是字体:font-family: Arial, Helvetica, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_courier">
<p>这是字体:font-family: Courier, monospace</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_georgia">
<p>这是字体:font-family: Georgia, serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_wingdings">
<p>这是字体:<br />
  font-family: Wingdings, 'Zapf Dingbats', sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>
</body>
</html>

<div class="font_webdings">
<p>这是字体:<,CSS技巧教程 css书写技巧;br />
  font-family: Webdings, sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_msserif">
<p>这是字体:font-family: 'MS Serif', 'New York', sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_times">
<p>这是字体:font-family: 'Times New Roman', Times, serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>
<div class="font_trebuchet">
<p>这是字体:font-family: 'Trebuchet MS', Helvetica, sans-seriff</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

<div class="font_comic">
<p>这是字体:font-family: 'Comic Sans MS', cursive</p>
<p>中文跟英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
<p></p>
</div>

很信服国外一些前端开发职员看待学识的研讨精力,他们很擅长总结发明。看到一篇对于平安字体List of Web Safe Fonts的文章,里面总结了所有的保险字体的款式,当然都是英文的。

所谓安全字体,就是在所有的浏览器中都能正常显示的字体,也就是所有操作体系默认都装置了的字体。

<div class="font_lucida_s">
<p>这是字体:font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif</p>
<p>中文和英文混排test</p>
<p>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p>
<p>abcdefghijklmnopqrstuvwxyz</p>
</div>


(责任编辑:网站建设)
CSS教程 所有浏览器中都能正常显示的字体相关文章
上一篇:CSS教程 关于网页图片的属性 下一篇:CSS教程 浮动元素对浏览器的支持
回到顶部