zoukankan      html  css  js  c++  java
  • css实现三角效果

    demo

     
     
    <!DOCTYPE html>
    <html lang="zh">
    <head>
    <meta charset=utf-8>
    <title>demo</title>
    </head>
    
    <style>
    #demo{
      width:100px; 
      height:100px; 
      border:2px solid #000;
    }
    #demo:before{
      content:''; 
      display:block; 
      width:0; 
      height:0; 
      position:relative; 
      top:10px; 
      left:100px; 
      border-left:9px solid #000; 
      border-top:7px solid transparent; 
      border-bottom:7px solid transparent;
    }
    #demo:after{
      content:''; 
      display:block; 
      width:0; 
      height:0; 
      position:relative; 
      top:-2px; 
      left:100px; 
      border-left:7px solid #fff; 
      border-top:5px solid transparent; 
      border-bottom:5px solid transparent;
    }
    #s{
      width:0; 
      height:0; 
      border-left:20px solid transparent;       /**/
      border-right:20px solid transparent;      /**/
      border-top:20px solid transparent;        /**/
      border-bottom:20px solid green;           /**/
    }
    </style>
    <body>
       <div id='demo'></div>
    
    
       <div id="s"></div>
    </body>  
    </html>
  • 相关阅读:
    十七、S3C2440 音频解码芯片WM8976声卡驱动移植、madplay测试
    2.3 摄像头驱动_vivi驱动程序分析
    3.1 wifi网卡RT3070在S3C2440的移植和使用
    项目简介
    2.2 vivi虚拟视频驱动测试
    2.1 摄像头V4L2驱动框架分析
    LCD驱动程序编写
    LCD驱动程序
    1. Linux内核的配置与裁减:
    第5章 docker run、exec和attach使用和区别
  • 原文地址:https://www.cnblogs.com/ccxiaomaomi/p/5650802.html
Copyright © 2011-2022 走看看