首页 > 其他 > 详细

文本属性

时间:2017-07-24 10:44:20      阅读:284      评论:0      收藏:0      [点我收藏+]
font-weight: 加粗;
font-size: 字体大小;
font-family: 字体;
font-style: 字体风格(斜体...);
color: 颜色;
opacity: 透明度;
height: 字体高度;
background-color: 背景颜色;
line-height: 行高;
text-align: 文本(左对齐.居中.右对齐);
letter-spacing: 字符间距;
text-decoration: underline;(给文本添加下划线)
text-decoration-color: black;(下划线颜色)
text-decoration-style: dotted;(下划线样式:实线.虚线.双划线)
/*下面三个属性:超出部分隐藏,用点表示*/
overflow: hidden;(超出部分隐藏)
text-overflow: ellipsis;(溢出文本元素发生的事情)
white-space: nowrap;(如何处理元素内的空白)
text-indent:规定文本块首行的缩进
text-shadow:向文本添加阴影
text-stroke:文本描边

文本属性

原文:http://www.cnblogs.com/zw0214/p/7227424.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!