CSS——字体属性
2016-07-24 09:13
525 查看
字体属性比较多,就不多列举,需要的时候可以查技术手册;
主要介绍几个常见的;
主要介绍几个常见的;
font 它是个复合属性。严格按照文档的顺序填写相应的格式 font-family 规定文本的字体 font-size 字体的大小 font-weight 字体的粗细 font-style 字体的样式 font-variant 是否以小型大写字母的字体显示文本
<html> <head> <title>CSS选择器5</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <!-- --> <style type="text/css"> /*p{ font-family:黑体; font-size:25px; font-weight:900; font-style:oblique; font-variant:small-caps; }*/ p{ font:oblique small-caps 900 25px 黑体; } </style> </head> <body> <p >窗前明月光,疑是地上霜!hello my love!</a><br/> </body> </html>
相关文章推荐
- Web布局连载——两栏固定布局(五)
- [div+css]晒晒最新制作专题推广页模板
- 盒子模型
- CSS选择器
- CSS样式优先权
- test
- [css] line-height 百分比单位和数值单位的区别
- css如何搞正方形
- Apple官网研究之使用Justify布局导航
- 关于前端的思考与感悟
- rem : web app适配的秘密武器
- jquery高级应用之Deferred对象
- 移动端点击事件全攻略,这里的坑你知多少?
- $q 实例分析 Angular 中的 Promise
- 浏览器中唤起native app || 跳转到应用商城下载
- Angular directive 实例详解
- 关于浮动与清除浮动,你应该知道的
- 数组reduce方法的高级技巧