HTML5-盒子的使用

 

一.

 

 

 

  border-color

  border-width

  border-style

属性用法遵循顺时针顺序。

border-top-

border-left-

border-bottom-

border-right-

a>border-width:值;

 

thin

medium

中等

thick

粗的
像素值14px

 

 

 

 

 

 

b>border-style:

 
none
hidden隐藏
dotted点线
dashed虚线
splid实线
double粗线

 

 

 

 

 

c>border-color:#000000;

 

 

border整体使用顺序:

border: width style color;

2.margin-top:

 margin-right:

 margin-bottom:

 margin-left:

居中语法 margin:0 auto;

<1>使用在块元素中

<2>用于固定宽度

3.padding-top:

 padding-right:

 padding-bottom:

 padding-left:

二.盒子的尺寸

box-sizing:content_box | border_box | inherit ;

content_box内容宽默认值

border_box 盒子的宽度或高度等于元素内容的宽度或高度。

inherit 元素继承父元素的盒子模型模式

 

三.圆的写法:

border-radius:20px 10px 50px 30px;

圆的方向设置按照顺时针,左上,右上,右下,左下。

四.盒子的阴影

box-shadow:inset  x-offset  y-offset  blur-radius   color;

CosmosRay

 

      cosmosray@aliyun.com
   CSDN博客
   格言:能力是金钱的另一种保存方式
   版权声明:本文为博主原创文章,如需转载请注明出处

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值