• 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>

  • 相关阅读:
    curl命令详解
    Linux 下 set env export declare浅浅 set和shopt命令详解--(shell定制) (转载)
    ps aux指令詳解
    smb设置参考手册 --详细参数
    Ajax
    JSON浅谈
    Date类型
    笔记本电脑不能上网的问题
    editplus 初步设置
    w10 系统升级
  • 原文地址:https://www.cnblogs.com/12606huchao/p/4878464.html
Copyright © 2020-2023  润新知