News新闻

业界新闻动态、技术前沿
Who are we?

您的位置:首页      网络营销      jquery压缩图像

jquery压缩图像

jquery按比例压缩图像%@ include file=/jsp/parents/jsp/utils.jsp %!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN css/popUpImg/popImage.css rel=stylesheet type=text/css /script type=text/javascript language=javascript src=${basePath}js/jque

jquery按比例压缩图像

<%@ include file="/jsp/parents/jsp/utils.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "css/popUpImg/popImage.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="${basePath}js/jquery-1.7.1.min.js" ></script>
<script type="text/javascript" language="javascript" src="${basePath}js/popUpImg/jquery.popImage.mini.js" ></script>
<script type="text/javascript" language="javascript" src="${basePath}js/jquery.ae.image.resize.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){
     $("#imageJcInfo img" ).aeImageResize({width: 160, height: 120 });
    $("#imageJcInfo img").popImage({"tagName":"src"});
});

</script>

</script>
</head>
<body>

 <div id="imageJcInfo" style="text-align:left;" >

       <img src="'../images/a.jpg'" width="160" height="120" autosize="yes"/>

  </div>

</body>
</html>

    我要评论
    共有 人参与,评论 条,顶帖 [点击查看]
  • 验证码:
  • 所有评论仅代表网友意见,与本站立场无关!