zoukankan      html  css  js  c++  java
  • 一个简单的css排版

    代码
    <html>
        
    <head>
            
    <style type="text/css">
                body
                
    {
                    text-align
    :center;
                    margin:0 auto;
                
    }
                .total
                
    {
                    height
    :300px;
                    margin
    :10px auto;
                    border
    :1px solid red;
                    padding
    :10px
                
    }
                .a
                
    {
                    width
    :250px;
                    height
    :300px;
                  border
    :2px dashed blue;
                  background-color
    :yellow;
                  float
    :left;
                
    }
                    .b
                
    {
                    margin
    :0 310px;
                    height
    :300px;
                  border
    :2px solid blue;
                  background-color
    :red;
                
    }
                .c
                
    {
                    height
    :300px;
                    float
    :right;
                    width
    :250px;
                  border
    :2px dashed blue;
                  background-color
    :yellow;
                
    }
                
    </style>
        
    </head>
        
    <body>
            
    <div class="total">
                
    <div class="a">美利坚合众国</div>
                
    <div class="c">北爱尔兰及大不列颠联合王国</div>   
                
    <div class="b">中华人民共和国</div>
                
            
    </div>
        
    </body>
    </html>
  • 相关阅读:
    SpringCloud Gateway使用实例
    Nacos服务注册与发现
    HashMap源码分析——put方法
    Volatile关键字——内存可见性
    Java的JIT编译器
    why spring?
    mysql 锁
    sql server 表变量和临时表
    mysql 存储过程
    mysql 截取字符串
  • 原文地址:https://www.cnblogs.com/yangruipretty/p/1734633.html
Copyright © 2011-2022 走看看