css基础--.矩形模块

  

l         margin(边缘)属性:控制元素边界与文件其他内容的空白距离。

margin-top:绝对值|相对值

margin-right: 2em

margin-bottom: 20%

margin-left: 15px

margin: 2cm(全部为2cm) |1cm 2cm(上下为1cm,左右为2cm)| 20pt 30% 30px 2cm(上,右,左,下)

l         border属性:控制表格四边边框的宽度、颜色、及样式。

Border-weight边框宽度属性

       border-weight: thin | medium | thick | (有上右下左的规律)

       eg) border-weight: thin medium thick thin

              border-weight: 2cm 1cm 2cm 1cm

       也单个指明宽度

       border-top-weight: border-right -weight: border-bottom-weight: border-left-weight:

Border-color

       border-color: #rrggbb  (同上:有上右下左的规律)

Border-style

border-style: none | dotted(小点虚线) | dashed (大点虚线) | solid(实线) |double(双直线) | groove(3D凹线) | ridge(3D凸线) | inset(3D框入线) | outset(3D隆起线)

l         padding属性:控制表格中的内容或图片。与元素内边界的空白距离。

Padding-top |right |bottom |left : |

         padding-top:  

padding:  (同上margin 属性)

你可能感兴趣的:(HTML/CSS)