• 关于CSS3三角的实现


    1,向上的三角

     1 <!doctype html>
     2 <html>
     3 <head>
     4 <meta charset="utf-8">
     5 <title>border-radius</title>
     6 <style>
     7 div{ 
     8     width:0;
     9     height:0;
    10     border-left:20px solid transparent;
    11     border-right:20px solid transparent;
    12     border-bottom:20px solid #ccc;
    13     }
    14 </style>
    15 </head>
    16 <body>
    17 <div>
    18 </div>
    19 </body>
    20 </html>

    2,向下的三角

     1 <!doctype html>
     2 <html>
     3 <head>
     4 <meta charset="utf-8">
     5 <title>border-radius</title>
     6 <style>
     7 div{ 
     8     width:0;
     9     height:0;
    10     border-left:20px solid transparent;
    11     border-right:20px solid transparent;
    12     border-top:20px solid #ccc;
    13     }
    14 </style>
    15 </head>
    16 <body>
    17 <div>
    18 </div>
    19 </body>

    20 </html> 

    3,向左的三角

     1 <!doctype html>
     2 <html>
     3 <head>
     4 <meta charset="utf-8">
     5 <title>border-radius</title>
     6 <style>
     7 div{ 
     8     width:0;
     9     height:0;
    10     border-top:20px solid transparent;
    11     border-bottom:20px solid transparent;
    12     border-right:20px solid #ccc;
    13     }
    14 </style>
    15 </head>
    16 <body>
    17 <div>
    18 </div>
    19 </body>

    20 </html> 

    4,向右的三角

     1 <!doctype html>
     2 <html>
     3 <head>
     4 <meta charset="utf-8">
     5 <title>border-radius</title>
     6 <style>
     7 div{ 
     8     width:0;
     9     height:0;
    10     border-top:20px solid transparent;
    11     border-bottom:20px solid transparent;
    12     border-left:20px solid #ccc;
    13     }
    14 </style>
    15 </head>
    16 <body>
    17 <div>
    18 </div>
    19 </body>

    20 </html> 

  • 相关阅读:
    对 Excel 工作簿中的数字签名和代码签名的说明
    单例模式
    面向对象
    Des对称加密
    Java获取电脑硬件信息
    鼠标双击事件不可描述的问题
    RSA不对称加密
    JTable表格案例
    控件刷新的奥秘
    反编译插件安装
  • 原文地址:https://www.cnblogs.com/White-Quality/p/4510668.html
Copyright © 2020-2023  润新知