zoukankan      html  css  js  c++  java
  • CSS 手动画热销小图标

    效果图

    HTML 标签

        <div class="main">
          <div class="small">
            <div class="big-area">
              <span>热销</span>
            </div>
            <div class="small-l">
    
            </div>
            <div class="small-r">
    
            </div>
          </div>
        </div>
    

    CSS 代码

          html, body {
            margin: 0;
            padding: 0;
          }
          .main {
             200px;
            height: 200px;
            margin: 0 auto;
            border: #000 1px solid;
          }
          .small {
            height: 60px;
             40px;
            margin: 0 auto;
            overflow: hidden;
          }
          .big-area {
             40px;
            height: 40px;
            line-height: 40px;
            background: #000;
            color: #fff;
            text-align: center;
          }
          .small-l {
             0px;
            height: 0px;
            margin: 0 auto;
            border-top: #000 10px solid;
            border-bottom: transparent 10px solid;
            border-left: transparent 10px solid;
            border-right: #000 10px solid;
            display: inline-block;
            float: right;
          }
          .small-r {
             0px;
            height: 0px;
            margin: 0 auto;
            border-top: #000 10px solid;
            border-bottom: transparent 10px solid;
            border-left: #000 10px solid;
            border-right: transparent 10px solid;
            display: inline-block;
            float: right;
          }
    
  • 相关阅读:
    vue小结
    ES6中的super关键字
    es5和es6
    雅虎工程师提供的CSS初始化示例代码
    移动端rem用法总结
    批量压缩图片
    cordova
    cordova 添加插件时报错相关问题
    JS 数组中对象去重 reduce 用法
    中间件笔录
  • 原文地址:https://www.cnblogs.com/zhourongcode/p/9226704.html
Copyright © 2011-2022 走看看