62,041
社区成员
发帖
与我相关
我的任务
分享
<div style=" text-align:center; padding:10px; width:95%; margin:0 auto" class="border" id="proc">
<asp:Image ID="product_img" runat="server"/>
</div>
<script language="javascript">
$(document).ready(function() {
var maxwidth = 550;
if ($("#proc img").attr("width") > maxwidth) {
$("#proc img").attr("width", maxwidth);
};
})
</script>
# $(window).load(function() {
var maxwidth = 550;
if ($("#proc img").attr("width") > maxwidth) {
$("#proc img").attr("width", maxwidth);
};
});