css基础--.矩形模块

  

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

margin-top:绝对值|相对值

margin-right: 2em

margin-bottom: 20%

margin-left: 15px

margin: <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv>(全部为<st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv>) |<st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="cm" w:st="on">1cm</st1:chmetcnv> <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv>(上下为<st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="cm" w:st="on">1cm</st1:chmetcnv>,左右为<st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv>)| <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="20" unitname="pt" w:st="on">20pt</st1:chmetcnv> 30% 30px <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv>(上,右,左,下)

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

Border-weight边框宽度属性

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

       eg) border-weight: thin medium thick thin

              border-weight: <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv> <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="cm" w:st="on">1cm</st1:chmetcnv> <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="cm" w:st="on">2cm</st1:chmetcnv> <st1:chmetcnv tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="cm" w:st="on">1cm</st1:chmetcnv>

       也单个指明宽度

       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 :<length> | <percentage> </percentage> </length>

         padding-top:  

padding:  (同上margin 属性)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值