zoukankan      html  css  js  c++  java
  • 万能清除法

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>h5</title>
    <style type="text/css">
    
    
        body,html{
            
            width:100%;
            height:100%;
        //    background-color:blueviolet;
            
            
            
        }
        .box{
            
            background-color: aqua;
            width:100%;
            min-height:100px;
            max-height:600px;
            height: auto !important;
            height: 500px;
            
        }
         .name{
            
            
            background-color: red;
            height: 20%;
        }
        .name:after{
            
            
            content:"后面的伪对象";
        }
        .name:before{
            
            content:"前面的伪对象";
        }
        .name:first-letter{
            color:blue;
        }
        .name:first-line{
            
            color:#031E27;
            font-size:35px;
            
            
        }
        .clear{
            
            
            
            border:3px solid #876262;
            
        }
        .clear .class2{
            
            
            width:500px;height: 500px;float:left;background-color: blue
            
        }
        .clear .class{
            
            
            width:500px;height: 500px;float:right;background-color:#2F6C26
            
        }
        .cle:after{
            content:".";
            display: block;
            width:100%;
            height:0;
            overflow: hidden;
            clear: both;
            visibility: hidden;
        }
        </style>
    </head>
    
    <body>
        
         
         <div class="clear cle">
             <div class="class"></div>
             <div class="class2"></div>
             
         </div>
    </body>
    </html>
  • 相关阅读:
    关于面试的有意义问题
    Web测试方法总结
    alwayson05-安装sql server
    alwayson03-安装故障转移
    always on
    alwayson02-各个节点加入域
    alwayson01-搭建域环境
    undo log和redo log
    mysql事务隔离级别
    Ajax
  • 原文地址:https://www.cnblogs.com/benpaodegegen/p/7808963.html
Copyright © 2011-2022 走看看