一、常用的css样式代码
- 去除超链接的下划线:text-decoration: none;
- 去除列表的样式:list-style: none;
- 设置行高(可以使文字垂直居中):line-height: 数值px;
- 使文字水平居中:text-align: center;
- 使鼠标指针呈现为手型:cursor: pointer;
二、HTMl使文字段多余的字省略号显示
white-space: nowrap;规定段落中的文本不进行换行 overflow: hidden;内容会被修剪,并且其余内容是不可见的。 text-overflow: ellipsis;显示省略符号来代表被修剪的文本。