zoukankan      html  css  js  c++  java
  • min-height最小高度的实现(兼容IE6、IE7、FF)(解决IE6不兼容min-height)

    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <meta name="Author" content="胡超">
    <title>super胡</title>
    <style>
    div{
    background:#ccc;
    min-height:100px; /*高度最小值设置为:100px IE6不识别min-height 和min-width*/
    height:auto !important; /*兼容FF,IE7也支持 !important标签 !important只是对于ie6不认识,IE6执行height:100px;其他浏览器执行height:auto !important;!important权重最高,相当于写在最下面*/
    height:100px; /*兼容ie6*/
    overflow:visible;
    100px;
    }
    </style>
    </head>
    <body>
    <div>
    喝水为什么会中毒?
    </div>
    <br/>
    <div>
    喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?喝水为什么会中毒?
    </div>
    </body>
    </html>

  • 相关阅读:
    linux 查看系统负载:uptime
    centos who命令 查看当前登录系统用户信息
    centos7 管理开机启动:systemd
    Linux ethtool 命令
    Linux ifconfig 命令
    linux centos7 目录
    POJ 1169
    POJ 1163
    POJ 1154
    POJ 1149
  • 原文地址:https://www.cnblogs.com/12606huchao/p/4878464.html
Copyright © 2011-2022 走看看