zoukankan      html  css  js  c++  java
  • HTML5-盒子的使用

    一.

     

      border-color

      border-width

      border-style

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

    border-top-

    border-left-

    border-bottom-

    border-right-

    a>border-值;

     

    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;
  • 相关阅读:
    1219 总结
    1206 冲刺三
    1130 冲刺2
    1128 主页面
    1123 冲刺3
    1121 冲刺2
    1118 冲刺1
    1117 新冲刺
    0622 软件工程总结
    0617 实验四 主存空间的分配和回收
  • 原文地址:https://www.cnblogs.com/cosmosray/p/7545767.html
Copyright © 2011-2022 走看看