```
边框:border
border:10px solid #f00
( 像素 线形 颜色)
```
按照border的属性类型划分为三种属性值分为代表:
边框宽度: border-width
线的颜色: border-color
线形:border-style
## 属性值:
<h2 >border-top 上边框
<br/>
border-bottom 下边框
<br/>
border-left 左边框
<br/>
border-right 右边框
</h2>
四值法:
```
border-width:4px; 上下左右分别具有4像素
border-width:2px 4px; 上下为二像素,左右为4像素
border-width:10px 20px 30px 上:10px 左、右:20px 下:30px
border-width:1px 2px 3px 4px 上:1px 右:2px 下:3px 左:4px
```
solid:实线
dashed :虚线
dotted: 点线
double:双线
groove:边框凹陷效果
rideg:边框凸显效果
inset:内容凹陷效果
outset:内容突出效果
border-color 边框颜色
无论是线性还是线厚度还是线的颜色,都可以单一设置某一个方向
- 简介
- 文字三属性(颜色,字号,字体)
- 盒子三属性(width , height, background-color)
- CSS引入方法
- CSS选择器
- css高级选择器
- CSS的继承性
- 颜色属性color
- 字体font-family
- 字号font-size
- 文字在盒子行高 line-height
- 字体加粗font-weight
- 字体样式font-style
- 文本段落对齐text-align
- 文字修饰(上划线下划线中划线 text-decoration)
- 文字缩进text-indent
- 盒子模型的宽度与高度width,height
- 内边距padding
- 边框border
- 外边距margin
- 清除默认样式
- 盒子height高度属性拓展
- 文字在盒子里居中text-align:center
- 盒子在盒子里的水平居中
- margin塌陷
- 标准文档流display
- 浮动float
- 浮动元素性质
- 浮动贴边原理
- 浮动元素的标准流问题(文字围边效果)
- 清除浮动
- 清除浮动影响二: clear属性
- 清除浮动overflow方法
- 伪类标签
- background-color背景颜色属性
- background-image 背景图片调用
- background-repeat 背景图平铺状态
- background-position背景定位
- background-attachment背景附着
- background综合语法
- 相对定位position:relative
- 绝对定位position:absolute
- 定位压盖顺序
- CSS制作LOGO超链接妙招
- CSS公共类的继承性
- em单位
- 媒体查询
- flex布局