您的位置:首页 > Web前端 > CSS

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: