zoukankan      html  css  js  c++  java
  • 布局

    两栏布局

    <!-- log -->
    <style>
      .two-side {
        height: 300px;
        position: relative;
      }
    
      .two-side .left {
        position: absolute;
        top: 0;
        height: 300px;
         100px;
        background-color: red;
      }
    
      .two-side .right {
        margin-left: 100px;
        opacity: 0.5;
        height: 100%;
        max- 750;
        background-color: green;
      }
    </style>
    <div class="two-side">
      <div class="left"></div>
      <div class="right"></div>
    </div>
    

    注意:位置可颠倒。

    逆向双飞翼

    <!-- log -->
    <section id="fly">
      <div class="wrapper">
        <div class="content"></div>
      </div>
    </section>
    <style>
      #fly .wrapper {
        height: 30px;
        background-color: grey;
      }
      #fly .content {
         500px;
        height: 30px;
        background-color: red;
        margin: 0 auto;
      }
    </style>
    
  • 相关阅读:
    OSX中zsh新增环境变量
    新的开始 春光明媚
    tmux
    继承
    6
    Object类
    网页收藏
    画王八
    ES6 语法之import export
    ES6 语法 之 destructuring
  • 原文地址:https://www.cnblogs.com/oceans/p/13589168.html
Copyright © 2011-2022 走看看