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>
  • 相关阅读:
    jenkins的目录介绍
    Docker 配置国内镜像加速器
    jquery----TreeTable
    java web----jsp语法
    Spring MVC----@ResponseBody注解(json)
    jquery----datatables
    java web----jsp自定义标签
    js----单步调试
    jquery----查找标签
    jquery----icheck插件
  • 原文地址:https://www.cnblogs.com/mhtss/p/11273196.html
Copyright © 2011-2022 走看看