?? rotation.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 不旋轉(zhuǎn); 1 旋轉(zhuǎn)90度 ;2 旋轉(zhuǎn)180度 ;3 旋轉(zhuǎn)270度
img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=0)'
}
function rotate90()
{
//rotation:0 不旋轉(zhuǎn); 1 旋轉(zhuǎn)90度 ;2 旋轉(zhuǎn)180度 ;3 旋轉(zhuǎn)270度
img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=1)'
}
function rotate180()
{
//rotation: 1 旋轉(zhuǎn)90度 ;2 旋轉(zhuǎn)180度 ;3 旋轉(zhuǎn)270度
img.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation=2)'
}
function rotate270()
{
//rotation: 1 旋轉(zhuǎn)90度 ;2 旋轉(zhuǎn)180度 ;3 旋轉(zhuǎn)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="恢復(fù)"> <input onclick="rotate90()" type="button" value="旋轉(zhuǎn)90">
<input onclick="rotate180()" type="button" value="旋轉(zhuǎn)180"> <input onclick="rotate270()" type="button" value="旋轉(zhuǎn)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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -