zoukankan      html  css  js  c++  java
  • 外部容器出现塌陷现象(伪类after、before的使用)

    伪类after、before的使用

    ::before//伪元素  :hover//伪类

    #all::after{

      display:table;

      clear:both;

      content:"";

    }

    #all::after:在all里面的最后添加一个虚拟的子元素after

    a:hover:带伪类别的a标签

  • 相关阅读:
    JasperReport
    Linux
    Linux
    Linux
    Linux
    Groovy
    Linux
    VS
    Aliyun
    Linux
  • 原文地址:https://www.cnblogs.com/lishenghao/p/weiLei.html
Copyright © 2011-2022 走看看