zoukankan      html  css  js  c++  java
  • css实现左边高度自适应右边高度

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>css</title>
    <style>
    .container{border: 5px solid #00BCD4;overflow: hidden}
    .left-content{
    float: left;
    300px;
    height: auto;
    background-color: red;
    color: #fff;
    padding-bottom: 9999px;
    margin-bottom: -9999px;
    }
    .right-content{
    margin-left: 300px;
    height: auto;
    padding-bottom: 9999px;
    margin-bottom: -9999px;
    color: #fff;
    background-color: blue;
    }
    </style>
    </head>
    <body>
    <div class="container">
    <div class="left-content">
    手可摘星辰
    </div>

    <div class="right-content">
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天

    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天

    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天
    危楼高百尺,手可摘星辰,不敢高声语,恐惊天上天

    </div>
    </div>
    </body>
    </html>
  • 相关阅读:
    【面试】Java基础
    GC
    【面试】JVM
    Spooling技术
    数据结构之 平衡二叉树
    二叉树应用
    LINUX设备驱动模型之class
    RTC(x86)
    微内核和单内核
    Linux内核的五大模块
  • 原文地址:https://www.cnblogs.com/mhtss/p/11273196.html
Copyright © 2011-2022 走看看