文本的样式
对齐
水平
text-align:left; /*左对齐*/
text-align:center; /*居中对齐*/
text-align:right; /*右对齐*/
text-align:justify; /*两端对齐*/
垂直
vertical-align:baseline;/*基线对齐*/
vertical-align:top; /*顶部对齐*/
vertical-align:bottom; /*底部对齐*/
vertical-align:middle; /*居中对齐*/
vertical-align:-10px; /*往上走-10px*/
文本的修饰线
text-decotation:none; /*默认,无效果*/
text-decotation:underline; /*下划线*/
text-decotation:line-through; /*删除线*/
text-decotation:overline; /*上划线*/
text-decotation:xxxxx red dotted; /*xx线、红色、虚线*/
/*↑除了IE都支持*/
处理元素中的空白
white-space:normal; /*正常*/
white-space:nowrap; /*不换行*/
white-space:pre; /*标签保留原格式(html咋写,就咋显示)*/
whidth:200px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
/*搭配效果超过200px(其它限制条件也可)的部分用…代替*/