⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rotation.aspx

📁 用asp.net c#关于网页的图片旋转,放大,缩小.
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="Rotation.aspx.cs" AutoEventWireup="false" Inherits="SkillGather.Web.Rotattion" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Rotation</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script>
		
		function small()
        {
           img.width=img.width*0.5;
           img.height=img.width;
           //img.height=img.height*0.5;
        }
        function large()
        {
           img.width=img.width*2;
           img.height=img.width;
           //img.height=img.height*2;
        }
        function rotate00()
        {
          //rotation:0 不旋转; 1 旋转90度 ;2 旋转180度 ;3 旋转270度
          img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=0)'
        }
        function rotate90()
        {
          //rotation:0 不旋转; 1 旋转90度 ;2 旋转180度 ;3 旋转270度
          img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=1)'
        }
        function rotate180()
        {
          //rotation: 1 旋转90度 ;2 旋转180度 ;3 旋转270度
          img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=2)'
        }
        function rotate270()
        {
          //rotation: 1 旋转90度 ;2 旋转180度 ;3 旋转270度
          img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=3)'
        }
       
        
        
        function printPic()
        {
         window.print();
        }
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体"></FONT>
		</form>
		<P><input onclick="large()" type="button" value="放大"> <input onclick="small()" type="button" value="缩小">
			<input onclick="rotate00()" type="button" value="恢复"> <input onclick="rotate90()" type="button" value="旋转90">
			<input onclick="rotate180()" type="button" value="旋转180"> <input onclick="rotate270()" type="button" value="旋转270">
			<input onclick="printPic()" type="button" value="打印">
		</P>
		<P><asp:image id="img" runat="server" ImageUrl="../image/00000318_0057_006660.jpg"></asp:image></P>
	</body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -