|
邯郸网站建设:JS控制图片等比缩放的代码 |
邯郸网站建设:JS控制图片等比缩放的代码 |
发布日期:2013-6-29 21:45:48 浏览次数:1364次 二维码分享
|
|
再在<body></body>之间加上 <script> $(function(){ $(".opuscontentmain img").each(function(){ if($(this).width()>630){ $(this).height($(this).height()*630/$(this).width()); $(this).width(630).css(’cursor’, "pointer"); $(this).attr(’title’, ’{dede:field.title/}’); $(this).click(function(){ window.open($(this).attr(’src’)); }); } }); }); </script>
|
作者:邯郸网站建设 |
上一条: 邯郸网站建设:未被授权查看该页的解决办法
|
来源:邯郸网络公司 |
下一条: 邯郸网站建设:kindeditor编辑器上传图片问题解决
|
|
|