zoukankan      html  css  js  c++  java
  • css中border画三角形

    <!doctype html>
    <html lang="en">
     <head>
      <meta charset="UTF-8">
      <meta name="Generator" content="EditPlus®">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">
      <title>CSS中border画三角形</title>
        <style>
        /*  
        等腰三角形
            .sanjiaoxing{
                0;
                height:0;
                border-bottom:100px solid yellow;
                border-left:50px solid transparent;
                border-right:50px solid transparent;
                
            }
        倒等腰三角形
            .sanjiaoxing{
                0;
                height:0;
                border-top:100px solid yellow;
                border-left:50px solid transparent;
                border-right:50px solid transparent;
            
            }
        右为底等腰三角形
            .sanjiaoxing{
                0;
                height:0;
                border-right:100px solid yellow;
                border-bottom:50px solid transparent;
                border-top:50px solid transparent;
            }
         左为底等腰三角形
            .sanjiaoxing{
                0;
                height:0;
                border-left:100px solid yellow;
                border-top:50px solid transparent;
                border-bottom:50px solid transparent;
            }
        左下为底等腰三角形
            .sanjiaoxing{
                        0;
                        height:0;
                        border-left:100px solid yellow;
                        border-top:100px solid transparent;
                    }
            .sanjiaoxing{
                        0;
                        height:0;
                        border-right:100px solid transparent;
                        border-bottom:100px solid yellow;
                            }
        右下为底等腰三角形
            .sanjiaoxing{
                                0;
                                height:0;
                                border-right:100px solid yellow;
                                border-top:100px solid transparent;
                            }
            .sanjiaoxing{
                                0;
                                height:0;
                                border-bottom:100px solid yellow;
                                border-left:100px solid transparent;
                            }
            */
                
        </style>
     </head>
     <body>
      <div>
        <div class='sanjiaoxing'>
        </div>
      </div>
     </body>
    </html>

  • 相关阅读:
    如何实现数据库实体生成工具
    linux samba 与 Windows 共享文件
    CUnit 的使用
    Xml Document与 xml反序列化
    c语言多文件链接
    c 递归获取文件与目录
    gdb输入输出重定向
    C 链表实现
    Log4net多程序集使用独立的配置文件
    Sqlite 学习 编译sqlite静态库,供其他项目调用
  • 原文地址:https://www.cnblogs.com/VaeVae/p/8630686.html
Copyright © 2011-2022 走看看