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

 

转载于:https://www.cnblogs.com/geovindu/p/3209175.html

### 实现 Vue-Cesium 实时绘制轨迹线 为了在 `vue-cesium` 中实现实时绘制轨迹线功能,可以参照以下方法: #### 安装依赖库 首先确保已经安装了必要的开发工具和库。对于 Vue3 项目而言,全局安装 `@vue/cli` 是必需的操作[^3]。 ```bash npm install -g @vue/cli ``` 接着创建新的 Vue 项目并选择合适的预设选项来初始化项目结构: ```bash vue create cesium-learning ``` 进入新创建的项目文件夹内继续操作: ```bash cd cesium-learning ``` #### 引入 Cesium 库 由于直接引入整个 Cesium 可能会增加打包体积,在现代前端构建工具的支持下推荐按需加载的方式引入特定模块。不过这里简化处理,通过 CDN 或者 npm 方式快速集成基本版本即可满足需求。 如果采用 NPM 形式的安装,则执行如下命令获取最新稳定版Cesium包及其样式资源: ```bash npm install cesium --save ``` 编辑项目的入口 HTML 文件(通常是 public/index.html),加入 Cesium 提供的地图容器 div 并设置其宽高属性以便显示地图视图;同时也可以在此处添加指向官方托管服务端提供的 CSS 资源链接以应用默认主题风格。 #### 编写组件逻辑 接下来定义一个名为 `RealtimeTrack.vue` 的单文件组件用于承载核心业务代码片段。该组件内部维护着一条由多个时间戳标记的位置点构成的时间序列数据集,并利用这些离散采样点构造出连续变化的空间曲线效果展示给用户查看。 ```html <template> <div id="cesiumContainer"></div> </template> <script setup lang="ts"> import * as Cesium from 'cesium'; import './Widgets/Cesium.css'; // 初始化 Viewer 对象实例化地球仪控件 const viewer = new Cesium.Viewer('cesiumContainer', { terrainProvider: Cesium.createWorldTerrain(), }); let positions = []; let timeStamps = []; function addPosition(longitude, latitude, height) { let cartographic = Cesium.Cartographic.fromDegrees( longitude, latitude, height ); positions.push(Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height)); timeStamps.push(new Date().toISOString()); } setInterval(() => { // 模拟每隔一秒向路径上追加随机坐标位置 const lon = Math.random() * 360 - 180; const lat = Math.random() * 180 - 90; const hgt = Math.random() * 5e3; addPosition(lon, lat, hgt); }, 1000); setTimeout(() => { drawPath(); }, 5000); async function drawPath(){ await sleep(5000); var property = new Cesium.SampledPositionProperty(); for (var i = 0; i < positions.length; ++i){ property.addSample(timeStamps[i],positions[i]); } viewer.entities.add({ name : "Trajectory Line", position : property, path : { resolution : 1, material : new Cesium.PolylineGlowMaterialProperty({ glowPower : 0.2, color : Cesium.Color.RED.withAlpha(0.7) }), width : 4 } }); viewer.zoomTo(viewer.entities); } function sleep(ms:number):Promise<void> { return new Promise(resolve=> setTimeout(resolve,ms)) } </script> <style scoped> #csmContainer { width: 100%; height: calc(100vh - 2rem); border: none; } </style> ``` 上述代码实现了每秒钟往三维空间里新增一个随机分布的数据节点,并最终形成一段动态演化的飞行航迹线条图形对象呈现在界面上让用户直观感受物体移动过程中的时空演变规律特性[^4]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值