zoukankan      html  css  js  c++  java
  • 0502-边框边界

    一、边界边框
    1、外边距 margin

    .one{
       200px;
      height: 200px;
      background-color: orange;
      margin: 30px 40px 50px 60px;
    }
    .two{
       200px;
      height: 200px;
      background-color: red;
    }
    <div class="one"></div>
    <div class="two"></div>

    2、内边距 padding(padding会加大height和width)

    .three{
      /* 200px;*/
       170px;
      height: 200px;
      background-color: blue;
      padding-left: 30px;
      margin-top: 30px;
    }
    <div class="three">123</div>

    3、边框边框 border

    .four{
         300px;
        height: 200px;
        border: 1px solid blueviolet;
        margin-top: 30px;
    }
    <div class="four"></div>

    4、margin-left padding-top border-right border-botton
    5、margin/padding:上 右 下 左
    6、transparent 透明

    .five{
         0px;
        height: 0px;
        border-top: 100px solid red;
        border-left: 100px solid transparent;
        border-bottom: 100px solid transparent;
        border-right: 100px solid transparent;
        margin-top: 30px;
    }
    <div class="five"></div>

    7、transform 转换(rotate旋转)

    .six{
         200px;
        height: 200px;
        background-color: deepskyblue;
        transform: rotate(45deg);
       margin-left: 100px;
    }
    <div class="six"></div>
  • 相关阅读:
    软件测试 -- alpha测试和beta测试的区别
    软件测试--各种测试的概念
    linux 安装memcached
    Visual Studio 2013 Preview
    基于HAL库STM32的FSMC驱动8位TFTLCD屏
    LM358电压跟随器
    广耦的应用
    MOS管的开关作用
    三极管的开关作用
    STM32的BOOT0 BOOT1的选择
  • 原文地址:https://www.cnblogs.com/zhengleilei/p/8983480.html
Copyright © 2011-2022 走看看