css所有文本修饰样式
2016-09-06 02:39
369 查看
</pre><pre name="code" class="html"><span style="font-size:24px;"><span style="white-space:pre"> </span>color: red; /*文本的颜色*/ line-height: 20px; /*为文本设置行高*/ text-align: center; /*水平对齐是影响一个元素中的文本的水平对齐方式。 值: left | center | right | justify | inherit*/ text-indent: 2em; /*文本缩进。length/inherit/initial(长度、继承、最初始的值)*/ text-decoration:none; /*none | [underline(下划线) || overline(上划线) || line-through(中划线)] | inherit*/ text-transform:uppercase; /*文本的转换 值: uppercase(全大写) | lowercase(全小写) | capitalize(首字母大写) | none | inherit*/ word-spacing:2em; /*用来设置文字或单词之间的间距,单词之间的间距 = word-spacing + 空格大小 值: <length> | normal | inherit*/ letter-spacing:4px; /*字母间的间隔*/ white-space:nowrap; /*设置文本的空白区域的处理方式 值:nowrap 不留空白 + pre-wrap 保留空白 + pre-line 合并空白符 + pre采用文本的默认样式*/ text-shadow: 2px 2px #3e1f1f; /*设置文本的文字阴影*/ text-justify: inter-word; /*改变字与字指之间的距离 值:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;*/ text-outline:2px 2px #ff0000; /*text-outline设置是文本的轮廓 所有的主流浏览器都不支持 */ text-overflow:hidden; /*设置文本溢出时的文本显示效果*/</span>
相关文章推荐
- WPF DevExpress 设置雷达图Radar样式
- CSS强制英文、中文换行与不换行 强制英文换行
- CSS-几种未知长宽的垂直水平居中方法
- input元素鼠标指向样式问题
- css中的层叠上下文,层叠水平与层叠顺序
- css知多少(7)——盒子模型
- 若干css样式
- CSS之Div+Css布局(一)
- 基本的web页面样式(就是一开始把所有的基础样式都规定好)
- css基础篇(黑马+慕课网笔记整理)
- CSS3 :nth-child() 与:nth-of-type()
- css选择器与JQ选择器的性能比对与优化方案
- CSS引入的方式以及 link和@import的区别
- 9.5日 新手 CSS新手课程 学习总结
- css去除chrome下select元素默认border-radius
- @keyframes、transform详解与实例
- CSS实现鼠标悬浮出现遮罩层示例源码
- 利用纯CSS实现头像旋转和发光的效果
- css3之box-shadow
- css 空心圆