• [CSS3] CSS Selector


    /* for li follow by another li, add margin */  
    ul li + li {
        margin-top: $unit;
      }
    // Display
    .display-flex {
      display: flex;
    
      &--wrap {
        flex-wrap: wrap;
      }
    
      &--row-gap {
        > * {
          margin: $unit !important;
        }
      }
    }

    >: direct children

    In this case, it apply margin for 'p' and tow 'ul's

    <footer
          class="mt-lg site-footer display-flex display-flex--row-gap justifycontent--center display-flex--wrap"
        >
          <p><span class="h3">✍️ NoteTaker</span><br />&copy; 2020</p>
          <ul class="list-unstyled">
            <li>
              <a href="javascript:;" class="button button--small">Pre-Order</a>
            </li>
            <li><a href="javascript:;">About</a></li>
            <li><a href="javascript:;">Contact</a></li>
            <li><a href="javascript:;">Careers</a></li>
          </ul>
          <ul class="list-unstyled">
            <li><a href="javascript:;">Terms & Conditions</a></li>
            <li><a href="javascript:;">Privacy Policy</a></li>
          </ul>
        </footer>
  • 相关阅读:
    Struts2
    HIbernate缓存
    spring的静态代理和动态代理
    JVM与垃圾回收机制(GC)和类的生命周期
    java开发设计六大基本原则
    数据表链表结构
    HashMap的底层实现
    string与位运算
    log4j和logback
    C#深入类的方法
  • 原文地址:https://www.cnblogs.com/Answer1215/p/13085823.html
Copyright © 2020-2023  润新知