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>
  • 相关阅读:
    JAVA中变量的初始化
    取得301转向后的地址
    history for html5
    php traits 介绍
    android 笔记
    C posix 笔记
    笔记
    C 常用库
    cocos2dx:利用CCSpriteBatchNode优化渲染效率
    C实现将指定秒数转化为时:分:秒格式
  • 原文地址:https://www.cnblogs.com/yangruipretty/p/1734633.html
Copyright © 2011-2022 走看看