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

    --边界边框

    -----外边距:margin      上 top   右 left    下 bottom    左 right

    -----内边距:padding    上 top   右 left    下 bottom    左 right

    -----边框:border

    ----------------------------------透明   transparent    

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
            <style type="text/css">
                #first{
                    width: 200px;
                    height: 200px;
                    background-color: red;
                    margin: 30px 40px 50px 60px;
                }
                #second{
                    width: 200px;
                    height: 200px;
                    background-color: red;
                }
                #third{
                    /* 200px;*/
                    width: 170px;
                    height: 200px;
                    background-color: orange;
                    padding-left: 30px;
                }
                #forth{
                    width: 300px;
                    height: 200px;
                    /*border-right: 1px solid black;*/
                    border-top: 10px solid red;
                    border-right: 10px solid red;
                    
                }
                #fifth{
                    width: 0px;
                    height: 0px;
                    border-top: 100px solid red;
                    border-left: 100px solid transparent;
                    border-bottom: 100px solid transparent;
                    border-right: 100px solid transparent;
                }
                #sixth{
                    width: 200px;
                    height: 200px;
                    background-color: red;
                    transform: rotate(45deg);
                }
            </style>
        </head>
        <body>
            <div id="first">
                
            </div>
            <div id="second">
                
            </div>
            <div id="third">
                
            </div>
            <div id="forth">
                
            </div>
            <div id="fifth">
                
            </div>
            <div id="sixth">
                
            </div>
        </body>
    </html>

  • 相关阅读:
    回调函数 协程
    网络编程 之线程
    并发编程 之进程相关
    并发编程的理论 python中实现多进程
    基于tcp的粘包处理终极版本
    基于socket的网络编程
    数据分析
    zabbix从入门到放弃
    Linux
    Django
  • 原文地址:https://www.cnblogs.com/mjwwzy/p/8983081.html
Copyright © 2011-2022 走看看