css属性
font-size:16px
字体大小
font-weight:normal
字体粗细=正常
font-style:normal
italic 斜体
字体样式=正常
oblique 倾斜
font-family:仿宋
指定字体
color:red
前景色
background-color:red
背景色
margin:0
外边距
padding:0
内补
display:inline-block
转换成行内块
inline
- 转换成行内元素
block
- 转换成块元素
none
- 隐藏
text-decoration:none
字体下滑线
none
- 无
overline
- 上滑线
underline
- 下滑线
line-though
- 中滑线
text-align:center
文本居中
left
- 左
right
- 右
line-height:height
行高
- 当行高等于盒子大小时文本垂注居中
height:60px
高度
width:1200px
宽度
vertical-align:middle
对齐方式
基线
white-space:nowarp
强制换行
overflow:hidden
内容溢出隐藏
text-overflow:ellipsis
文本溢出显示省略
boreder:1px solid red
边框
border-radius:50%
弧度
list-style:none
ul ol li去除列表样式就是前面的小点点
text-indent
首行缩进
text-transform
文本大小写转换
- uppercase 全大写
- lowercase 全小写
- capitalize 首字母大写