小编A-f*_*ame的帖子

简单的Jquery悬停放大

我不确定我哪里出错了.我正在尝试使用缩放功能使用Jquery创建一个非常简单的hover-enlarge插件.这是我的代码:

$(document).ready(function(){
    $("#content img").toggle("scale",{
      percent: "80%"
    },0);
$('#content img').hover(function() {
    $(this).css("cursor", "pointer");
    $(this).toggle("scale",{
      percent: "90%"
    },500);

}, function() {
    $(this).toggle("scale",{
      percent: "80%"
    },500);

});
});
Run Code Online (Sandbox Code Playgroud)

这是一个小例子:http://jsfiddle.net/8ECh6/

这是页面:http://samples.zcardna.com/health.html

如果somone知道我哪里出错了那就太棒了!谢谢!

jquery scale hover image-enlarge

15
推荐指数
1
解决办法
9万
查看次数

使用embed,object或iframe方法更改PDF查看器中的背景颜色

我一直在玩不同的显示PDF的方法,目的是找到一种将灰色背景改为白色的方法.

这是一个使用对象标签的简单示例(我使用embed和iframe标签获得相同的结果):

http://jsfiddle.net/5CALy/7/

HTML

  <object data='https://dl.dropboxusercontent.com/u/58922976/test.pdf#view=FitH&scrollbar=0&toolbar=0&statusbar=0&messages=0&navpanes=0' 
        type='application/pdf' 
        width='84%' 
        height='110px'>

<p>It appears your Web browser is not configured to display PDF files. 
No worries, just <a href='https://dl.dropboxusercontent.com/u/58922976/test.pdf'>click here to download the PDF file.</a></p>
</object>
Run Code Online (Sandbox Code Playgroud)

谢谢!!

embed pdf iframe html5 background

7
推荐指数
1
解决办法
3498
查看次数

标签 统计

background ×1

embed ×1

hover ×1

html5 ×1

iframe ×1

image-enlarge ×1

jquery ×1

pdf ×1

scale ×1