• 用纯css画个三角形


    用纯css画个三角形以下是源代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>用纯css画个三角形-柯乐义</title>
    </head>
    <body>
    <style type="text/css">
    .rightdirection
    {
    width:0;height:0;
    line-height:0;
    border-width:20px;
    border-style:solid;
    border-color:transparent transparent transparent #A9DBF6;
    }
    .bottomdirection
    {
    width:0;height:0;
    line-height:0;
    border-width:20px;
    border-style:solid;
    border-color: #A9DBF6 transparent transparent transparent;
    }
    .leftdirection
    {
    width:0;height:0;
    line-height:0;
    border-width:20px;
    border-style:solid;
    border-color: transparent #A9DBF6 transparent transparent;
    }
    .topdirection
    {
    width:0;height:0;
    line-height:0;
    border-width:20px;
    border-style:solid;
    border-color: transparent transparent #A9DBF6 transparent;
    }
    </style>
    <div class="rightdirection"></div>
    <p>
    <div class="bottomdirection"></div>
    <p>
    <div class="leftdirection"></div>
    <p>
    <div class="topdirection"></div>
    </body>
    </html>

    参考:http://keleyi.com/a/bjac/j9nnxrqd.htm

     
  • 相关阅读:
    Windows7共享设置
    13-运算符
    13-数据类型转换
    06-移动web之flex布局
    09-sass
    08-less预处理器
    移动端必须掌握知识点
    11-JS变量
    10-响应式
    07-rem
  • 原文地址:https://www.cnblogs.com/sosoft/p/3451856.html
Copyright © 2020-2023  润新知