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>

  • 相关阅读:
    选择结构(if、switch)
    顺序结构程序
    矩阵变换、矩阵求值
    basicRF双向灯光控制
    基于BasicRF点对点无线开发基础知识
    MATLAB矩阵处理—特殊矩阵
    ScrollView嵌套RecyclerView时滑动出现的卡顿
    如何给GridView添加网格
    Android 中关于ListView分割线的设置
    关于ScrollView嵌套ListView问题
  • 原文地址:https://www.cnblogs.com/VaeVae/p/8630686.html
Copyright © 2011-2022 走看看