zoukankan      html  css  js  c++  java
  • CSS3 实现三角形

    实现三小效果展示

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            .flowchart {padding: 10px 15px 1px 10px; min- 500px;}
            .flow-item {float: left;  16.66667%; max- 180px; text-align: center; margin-bottom: 9px; padding-right: 5px;}
            .flow-item > div {position: relative; padding: 5px 0 5px 12px; line-height: 20px; background: #90A4AE; white-space:nowrap; overflow: visible; color: #fff;}
            .flow-item > div:before, .flow-item > div:after {content: ' '; display: block;  0; height: 0; border-style: solid; border- 15px 0 15px 15px; border-color: transparent transparent transparent #90A4AE; position: absolute; left: 0; top: 0}
            .ie-8 .flow-item > div:before {display: none}
            .flow-item > div:before {border-left-color: #fff; z-index: 1}
            .flow-item > div:after {left: auto; right: -14px; z-index: 2}
            .ie-8 .flow-item > div {margin-right: 10px}
            .flow-item-0 > div:before {display: none}
            .flow-item-1 > div {background: #1976D2}
            .flow-item-1 > div:after {border-left-color: #1976D2}
            .flow-item-2 > div {background: #4CAF50}
            .flow-item-2 > div:after {border-left-color: #4CAF50}
            .flow-item-3 > div {background: #F57C00}
            .flow-item-3 > div:after {border-left-color: #F57C00}
            .flow-item-4 > div {background: #EF5350}
            .flow-item-4 > div:after {border-left-color: #EF5350}
            .flow-item-5 > div {background: #AB47BC}
            .flow-item-5 > div:after {border-left-color: #AB47BC}
    
            .flow-item-1 > div:hover {background: #1565C0}
            .flow-item-1 > div:hover:after {border-left-color: #1565C0}
            .flow-item-2 > div:hover {background: #43A047}
            .flow-item-2 > div:hover:after {border-left-color: #43A047}
            .flow-item-3 > div:hover {background: #EF6C00}
            .flow-item-3 > div:hover:after {border-left-color: #EF6C00}
            .flow-item-4 > div:hover {background: #E53935}
            .flow-item-4 > div:hover:after {border-left-color: #E53935}
            .flow-item-5 > div:hover {background: #9C27B0}
            .flow-item-5 > div:hover:after {border-left-color: #9C27B0}
            html[lang="en"] .flowchart {min- 700px}
    
        </style>
    </head>
    
    <body>
        <div class="row">
            <div class="flow-item flow-item-0"><div>测试人员</div></div>
            <div class="flow-item flow-item-1"><div>撰写用例</div></div>
            <div class="flow-item flow-item-2"><div>执行用例</div></div>
            <div class="flow-item flow-item-3"><div>提交Bug</div></div>
            <div class="flow-item flow-item-4"><div>验证Bug</div></div>
            <div class="flow-item flow-item-5"><div>关闭Bug</div></div>
          </div>
    </body>
    
    </html>
    
    
  • 相关阅读:
    pr 打印函数
    list to tree(记录集转换为树结构)
    iOS 中计时器的使用心得
    iOS动画开发----打分 数字滚动刷新动画
    iOS动画开发----粒子系统---彩带效果
    Touch Up Inside not working with UISlider
    Xcode警告:Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
    iOS评论App----常用时间的处理
    获取文件/文件系统属性的方法----attributesOfItemAtPath:和attributesOfFileSystemForPath:
    NSInvocation错误
  • 原文地址:https://www.cnblogs.com/snmic/p/10407378.html
Copyright © 2011-2022 走看看