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);

  • 相关阅读:
    udp用户数据报协议
    java调用url
    mybatis中的#和$的区别
    sun.misc.BASE64Encoder图片编码,并在页面显示
    oracle查看列数据类型
    MyBatis传入多个参数的问题
    ajax详解
    Comparable和Comparator的区别
    谈谈hashcode和equals的用法
    从为什么String=String谈到StringBuilder和StringBuffer
  • 原文地址:https://www.cnblogs.com/hr2014/p/3824725.html
Copyright © 2011-2022 走看看