1.边框的基本属性
- border-width
- border-color
- border-style
缩写: border: 1px solid red
2.不同边单独设置边框
即加上方位词即可:top、left、right、bottom
如:
- border-bottom-width
- border-bottom-color
- border-bottom-style
3.圆角边框
基本使用:border-radius: 10px
单独拆分:
border-top-left-radius
border-top-right-radius
border-bottom-left-radius
border-bottom-left-radius
4.盒子阴影属性
外阴影:
box-shadow: x-offset(左偏移) y-offset(右偏移) 模糊半径 color
内阴影:
box-shadow: inset x-offset(左偏移) y-offset(右偏移) 模糊半径 color