zoukankan      html  css  js  c++  java
  • -ms-zoom property

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Zoom Demo:-ms-zoom</title>
    <script type="text/javascript"> 
    //塗聚文 20130723
    //http://msdn.microsoft.com/en-us/library/ie/ms531189(v=vs.85).aspx
    function zoomIn() {
      newZoom= parseInt(oZoom.style.zoom)+10+'%'
          oZoom.style.zoom =newZoom;
    	  oCode.innerText='zoom: '+newZoom+'';	
      } 
    function zoomOut() {
      newZoom= parseInt(oZoom.style.zoom)-10+'%'
          oZoom.style.zoom =newZoom;
    	  oCode.innerText='zoom: '+newZoom+'';	
      } 
    function changeZoom() {
      newZoom= parseInt(oSlider.value)
    		oZoom.style.zoom=newZoom+'%';
    		oCode.innerText='zoom: '+newZoom+'%';	
      } 
    function changeZoom2(oSel) {
      newZoom= oSel.options[oSel.selectedIndex].innerText
    		oZoom.style.zoom=newZoom;
    		oCode.innerText='zoom: '+newZoom+'';	
      } 
    </script>
    
    </head>
    
    <body onload="oZoom.style.zoom='50%'; oCode.innerText='zoom: 50%'; ">
     <form>
         <div id="oZoom" style="zoom: 100%" align="center">
            <h1>Welcome to Seattle!</h1>
            <img src="pictures/2.jpg" alt="Seattle skyline" align="left"/>
            <img src="pictures/1.jpg" alt="Seattle skyline" align="left"/>
            <p align="center">A great city in the beautiful state of Washington.</p>
        </div>
    <div align="center">
            <select id="percent" onchange="changeZoom2(percent); ">
            <option selected="">Use Percentage Value</option>
            <option>10%</option>
            <option>25%</option>
            <option>50%</option>
            <option>75%</option>
            <option>100%</option>
            <option>150%</option>
            <option>200%</option>
            </select></div>
    
    
     
     </form>
    
    </body>
    
    </html>
    

     CSS3 Hover Image Gallery  圖片放大 IE9以上版本,其他瀏覽器最新版本可以:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>CSS3 Hover Image Gallery  圖片放大 IE9以上版本</title>
    <style type="text/css">
    
    .hovergallery img{
    -webkit-transform:scale(0.18); /*Webkit: Scale down image to 0.8x original size*/
    -moz-transform:scale(0.18); /*Mozilla scale version*/
    -o-transform:scale(0.18); /*Opera scale version*/
    -webkit-transition-duration: 0.15s; /*Webkit: Animation duration*/
    -moz-transition-duration: 0.15s; /*Mozilla duration version*/
    -o-transition-duration: 0.15s; /*Opera duration version*/
    opacity: 0.17; /*initial opacity of images*/
    margin: 0 10px 5px 0; /*margin between images*/
    
    }
    
    .hovergallery img:hover{
    -webkit-transform:scale(1.1); /*Webkit: Scale up image to 1.2x original size*/
    -moz-transform:scale(1.1); /*Mozilla scale version*/
    -o-transform:scale(1.1); /*Opera scale version*/
    box-shadow:0px 0px 30px gray; /*CSS3 shadow: 30px blurred shadow all around image*/
    -webkit-box-shadow:0px 0px 30px gray; /*Safari shadow version*/
    -moz-box-shadow:0px 0px 30px gray; /*Mozilla shadow version*/
    opacity: 1;
    }
    
    </style>
    
    </head>
    
    <body>
    <div class="hovergallery">
            <img src="pictures/1.jpg" alt="" />
            <img src="pictures/2.jpg" alt="" />
            <img src="pictures/3.jpg" alt="" />
            <img src="pictures/4.jpg" alt="" />  
    </div>
    </body>
    
    </html>
    
  • 相关阅读:
    使用Project Linker 2012实现多个项目中代码文件
    使用的开放源码Scryber库动态生成PDF文件
    破解Excel 密码保护
    入围51CTO 2009年度“最受读者欢迎的IT图书作者”评选
    谈谈分布式事务之二:基于DTC的分布式事务管理模型[下篇]
    WCF 技术剖析之三十三:你是否了解WCF事务框架体系内部的工作机制?[下篇]
    事件(Event),绝大多数内存泄漏(Memory Leak)的元凶[下篇] (提供Source Code下载)
    如何实现对上下文(Context)数据的统一管理 [提供源代码下载]
    WCF技术剖析之二十七: 如何将一个服务发布成WSDL[基于HTTPGET的实现](提供模拟程序)
    Enterprise Library深入解析与灵活应用(9):个人觉得比较严重的关于CachingCallHandler的Bug
  • 原文地址:https://www.cnblogs.com/geovindu/p/3209175.html
Copyright © 2011-2022 走看看