表单组成:
Type:
- Text 文本框
- Password 密码框
- Radio 单选
- Submit 确认按钮
- Button 按钮
- Checkbook 复选
- File 文件类型限制
- Reset 重置按钮
字体样式
- 字体大小 font-size
- 字体颜色 color
- 字体设置 font-family
- 字体加粗 font-weight
- 字体倾斜 font-style:oblique、italic、normal
文本样式
- 文本对齐:水平居中 text-align:center,垂直居中:line-height:height;
- 文本缩进 text-indent:2em
- 行高 line-height
背景样式
- 背景颜色 background-color
- 背景图签 background- image
- 背景图片大小 background-size
- 背景图片重复 background-repeat
- 背景图片位置 background-position
- 背景图片固定 background-attachmen
边框样式
- 整体样式 border:1px solid red
列表样式
- 项目符号 list-style-type
- 列表项图片 list-style-image
选择器
- 类选择器 .class
- Id选择器 #id
- 元素选择器 div、button
伪类选择器
- Link 默认状态
- Hover 鼠标悬停
- Active 鼠标点击
- Visited 访问链接