头像裁切一直是一个棘手的问题,网上一些裁切程序很多都是兼容*不太好,或者使用起来不方便。
今天,完善了一个头像裁切程序,来和大家分享。借助了jquery插件Jcrop,上传使用的是uploadify,经试验火狐、IE 6 7 8均通过,使用起来也极为方便
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cut.aspx.cs" Inherits="cut" %>
<!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 runat="server">
<title>头像裁切</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<link href="ImgCut/css/jquery.Jcrop.css" rel="stylesheet" type="text/css" />