zoukankan      html  css  js  c++  java
  • CSS控制图片显示缩略图

    <style type="text/css">
    .box {
        vertical-align:middle;
        160px;
        height:160px;
        text-align:center;
        border: 1px solid #eee;
    }
    /* For IE7 */
    .box img {
        vertical-align:middle;
       border:0 ;
       expression(this.width>160&&this.width>this.height?160:auto);
       height:expression(this.height>160?160:auto)
    }
    /* For IE6 */
    *html.box img {
        vertical-align:middle;
       border:0  ;
       max-160px;max-height:160px;
    }
    </style>

    <td class="box">
           
            <a  href='OpenImage_Access.aspx?ID=<%#Container.DataItem("ID")%>' target="_blank" >
    <img src='OpenImage_Access.aspx?ID=<%#Container.DataItem("ID")%>' title='文件格式:<%# Container.DataItem("imgFormat")%>/文件尺寸<%# Container.DataItem("imgsize")%>byte' > </a>
             
            
           </td>
  • 相关阅读:
    环保
    A股行情记录
    航运
    黑五类
    家电
    妖股
    高校概念股
    科技园区
    壳股
    白底黑字or黑底白字,眼睛更喜欢哪一个?
  • 原文地址:https://www.cnblogs.com/tiasys/p/1222820.html
Copyright © 2011-2022 走看看