zoukankan      html  css  js  c++  java
  • css 三角实例

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>

    .duihua span.tp{
    border- 30px;
    border-style: solid;
    border-color:transparent transparent red transparent;
    left:40px;
    top: -60px;
    }
    .duihua span.bo{
    border- 30px;
    border-style: solid;
    border-color:transparent transparent #fff transparent;
    left:40px;
    top: -59px;
    }
    .duihua{
    300px;height:30px;border:1px solid red;
    position: relative;left:100px;top:200px;background: yellow
    }
    .duihua i{position: absolute; 0;height: 0;font-size: 0;}
    .duihua i.jiao{
    border- 16px 16px 16px 8px;
    border-style: solid;
    border-color: transparent transparent transparent red;
    left:300px;
    top: -1px;
    }
    .duihua i.jiaob{
    border- 16px 16px 16px 8px;
    border-style: solid;
    border-color: transparent transparent transparent yellow;
    left:299px;
    top: -1px;
    }
    </style>
    </head>
    <body>
    <div class="duihua">
    <span class="tp"></span>
    <span class="bo"></span>
    <i class="jiao"></i>
    <i class="jiaob"></i>
    </div>
    </body>
    </html>

  • 相关阅读:
    gentoo Wireless Configuration
    Gentoo: Chrome
    Gentoo: user's permission
    参考
    GithubPages上部署hexo
    hexo 个人博客搭建
    服务器修改用户名和密码
    CentOS 服务器搭建 mediawiki
    mysql 修复命令日志
    个体如何采用敏捷的工作方式
  • 原文地址:https://www.cnblogs.com/zerohu/p/5368311.html
Copyright © 2011-2022 走看看