zoukankan      html  css  js  c++  java
  • (转)ie -ms-interpolation-mode: bicubic 属性详解

    ie -ms-interpolation-mode: bicubic 属性详解
     img { -ms-interpolation-mode: bicubic; }
    这个在做实时缩放图片、缩略图的时候用处挺大。IE7 Only
     
     
    IE7.0自带样式属性-ms-interpolation-mode
     
     
    刚过完火星,从骨灰级哪里淘到的沙子。
     
    以前很少写样式的体验,今天来了兴致,那就给大伙共享一下。
     
    也不管是否还有火星鸡
     
    iE7.0中自带的-ms-interpolation-mode属性可以解决缩放失真问题
     
    如下是测试代码
     
    .img01,.img02,.img03{float:left;padding:0 5px;text-align:center;}
    .img01{-ms-interpolation-mode:Nearest-Neighbor}
    .img02{-ms-interpolation-mode:normal;}
    .img03{-ms-interpolation-mode:bicubic}
     
    ps:不过这也与图的大小,有关系,500以上的再定义放大,可能明显,小图再放大,好像不太明显
     
    ps:好像很少用到这个属性,再者,他只是ie的自带属性
  • 相关阅读:
    网络基础
    Web开发几种常用工具
    win组合键概述(windows10)
    Alfred使用
    Java8之新特性--modules
    jsp九大内置对象和四大作用域
    authtype
    Myeclipse中的快捷键
    如何在Jenkins CI 里调试
    写好unit test的建议和例子
  • 原文地址:https://www.cnblogs.com/wanshutao/p/3963787.html
Copyright © 2011-2022 走看看