CSS: CSS常用的文本样式属性
2016-08-26 11:37
519 查看
介绍:CSS常用的文本样式属性
color: 颜色
font-size: 字体大小
font-style (normal、italic、oblique): 字体样式(正常、斜体)
font-weight (normal 、bold、100-900): 字体的粗细
line-height: 行高
text-align: 对齐方式
text-decoration (underline、line-through):下划线(文字底部的线、穿过文字的线)
word-spacing:字体之间的间隔
测试:
CSS_Property.html
View Code
效果图:
color: 颜色
font-size: 字体大小
font-style (normal、italic、oblique): 字体样式(正常、斜体)
font-weight (normal 、bold、100-900): 字体的粗细
line-height: 行高
text-align: 对齐方式
text-decoration (underline、line-through):下划线(文字底部的线、穿过文字的线)
word-spacing:字体之间的间隔
测试:
CSS_Property.html
h2{ color: #FF0000; /*color: red; */ font-size: 40px; font-weight: bold; font-style: italic; text-align: center; text-decoration: line-through;/*穿过文字*/ word-spacing: 40px; } p{ color: white; font-size: 20px; font-weight: 100; font-style: oblique; text-align: center; line-height:40px; text-decoration: underline;/*文字底部*/ background: rgb(13,195,176); }
View Code
效果图:
相关文章推荐
- CSS样式常用兼容属性之日积月累
- css的文本样式属性
- css常用文本属性
- 针对常用移动端H5页面CSS 样式控制。禁用页面文本复制、禁用系统默认菜单、禁止链接点击高亮的处理。。。。
- css文字控制与css文本样式示例和属性
- CSS属性之文本(Text)属性 常用14个
- CSS常用文本属性
- CSS笔记(字体样式,文本属性和颜色样式)
- css常用样式属性详细介绍
- CSS样式常用属性整理
- HTML-CSS常用样式文本溢出处理效果
- CSS 常用 字体 文本 列表 边框属性
- css常用样式属性总结
- css常用样式属性详细介绍
- css常用属性之文本属性
- HTML5学习_day01(7)--css常用文本样式
- CSS常用样式属性
- CSS 文本属性text 常用简介
- css对于文本处理的几个不常用属性
- WEB前端-CSS-选择器&常用样式/属性