HTML(3)
来源:互联网 发布:iphone一键越狱软件 编辑:程序博客网 时间:2024/05/17 03:35
font family
Each font-family contains a set of fonts that share common characteristics. There are five font families: sans-serif, serif,monospace, cursive, and fantasy. Each family includes a large set of fonts.
Take a good look at the font families: serif fonts have an elegant, traditional look,while sans-serif fonts have a very clean and readable look. Monospace fonts feel like they were typed on a typewriter. Cursive and fantasy fonts have a playful or stylized feel.
body {
font-family: Verdana, Geneva, Arial, sans-serif;
}
按顺序依次尝试 本机有没有安装相应的字体,若均没有,则按默认的sans-serif字体
How to add a Web Font to your page
Find a font;
Make sure you have all the formats of the font you need;
Place your font files on the Web;
Add the @font-face property to your CSS;@font-face {
font-family: "Emblema One";
src: url("http://wickedlysmart.com/hfhtmlcss/chapter8/journal/EmblemaOne-Regular.woff"),
url("http://wickedlysmart.com/hfhtmlcss/chapter8/journal/EmblemaOne-Regular.ttf");
}
Use the font-family name in your CSS;h1 {
font-family: "Emblema One", sans-serif;
}
specify web colors
body {background-color: silver;}
body {background-color: rgb(80%, 40%, 0%);}
body {background-color: rgb(204, 102, 0);}
body {background-color: #cc6600;}
- HTML(3)
- HTML-3
- html-3
- HTML(3)
- html(3)
- html-3
- HTML-3
- 【HTML 初学】3、HTML标题
- 【HTML】No.3 HTML基础
- Html学习笔记(4)-Html标签(3)
- Html学习笔记(3)-Html标签(2)
- HTML学习笔记(3) - HTML标签
- HTML学习笔记:3 HTML属性
- HTML学习3--html|head|body
- HTML学习之路-3 HTML标签
- HTML教程(3)-颜色
- HTML DOM 教程(3)
- HTML学习笔记(3)
- 提高iOS App性能的方法
- 面向对象设计原则
- 【STL】<algorithm><numeric><functional> 中的常用算法
- Android中的Handler
- 最小生成树
- HTML(3)
- 自定义标签与spring注入
- Stream.Write 与 StreamWriter.Write 的不同
- 网页计算器(javascript脚本)
- CF 240 D. Mashmokh and ACM
- JNDI 是什么
- 用DetachedCriteria查询
- php文件管理工具——RESPONSIVE filemanager
- (3)jmock测试入门