zoukankan      html  css  js  c++  java
  • css 高宽判断

    /× expression(this.width > 100 && this.width > this.height ? 100: true);
     height: expression(this.height > 100 ? 100: true);
     expression(this.width > 100 ? 100: true);×/

    ====================
    IE6最小高度
    .min_height{
      min-height:200px;
      _height:expression(this.scrollHeight < 200 ? "200px" : "auto");
    }
    --------------------------------
    IE6最大高度
    .max_height{
      max-height:400px;
      _height:expression(this.scrollHeight > 400 ? "400px" : "auto");
    }
    --------------------------------
    IE6最小宽度
    max- 600px;
     _expression(document.body.clientWidth > 600 ? "600px" : "auto");
     /*_expression(document.body.clientWidth < 300 ? "300px" : "auto"); 这是min-width */
    --------------------------------
    IE6最大最小宽度
    .min_and_max_width{
      min-300px;
      max-600px;
      _ expression(
        document.body.clientWidth < 300 ? "300px" :
           ( document.body.clientWidth > 600 ? "600px" : "auto")
      );
    }
    --------------------------------
    IE6最大最小高度
    .min_and_max_height{
      min-height:200px;
      max-height:400px;
      _height: expression(
        this.scrollHeight < 200 ? "200px" :
          ( this.scrollHeight > 400 ? "400px" : "auto")
      );
    }
    ====================

    现在最大高度,按比例缩小

     max-height:1000px;
    max-1000px;
    height: expression(this.height > 1000 ? 1000: true);

  • 相关阅读:
    使用koa+mongodb构建的仿知乎接口(二)
    使用koa+mongodb构建的仿知乎接口(一)
    flask学习笔记
    后端遇到一些问题
    前端项目一些细节总结
    python基础学习
    vue本地运行项目使用iframe的跨域问题
    hover状态下改变图片颜色的方式 悬停图片切换;css变量;悬停svg图片改变颜色;VUE
    深拷贝
    git初使用
  • 原文地址:https://www.cnblogs.com/hr2014/p/3824725.html
Copyright © 2011-2022 走看看