【发布时间】:2014-07-31 16:36:17
【问题描述】:
您好,这是我的代码,
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://www.jacklmoore.com/colorbox/jquery.colorbox.js" type="text/javascript" ></script>
<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example4/colorbox.css" type="text/css" media="screen"/>
<script type="text/javascript">
$(document).ready(function () {
$("#test").click(function () { //on clicking the link above
$(this).colorbox({iframe:true, width:"80%", height:"80%"});
});
});
</script>
</head>
<body>
<h3>External Form</h3>
<a href="https://dev88.wufoo.com/forms/ze7xusq0j2tum9/" id="test">Please fill out my form.</a>
</body>
</html>
它工作正常,就像灯箱弹出一样。现在我需要当表单显示时,滚动条应该被删除,我的代码怎么可能?
请帮帮我?
【问题讨论】:
-
增加 iframe 的宽度和/或高度....
-
你们有现场直播吗?
标签: javascript jquery html css