我不确定我哪里出错了.我正在尝试使用缩放功能使用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知道我哪里出错了那就太棒了!谢谢!
我一直在玩不同的显示PDF的方法,目的是找到一种将灰色背景改为白色的方法.
这是一个使用对象标签的简单示例(我使用embed和iframe标签获得相同的结果):
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)
谢谢!!