如何在 iframe podio-webform-frame 设置 scrolling = "no"?
how to set scrolling = "no" at the iframe podio-webform-frame?
如何在 iframe podio-webform-frame 中设置 scrolling = "no"
?
不幸的是,完全符合 HTML5 的 HTML 和 CSS 属性是可能的
Podio Webforms 的 iframe 属性无法预先自定义,但您可以使用 JQuery.
等操作其上的属性
查看此 SO 答案以获取更多信息:
来自 Marcelo 代码的示例:
$('.podio-webform-frame').on("load", function() {
$('.podio-webform-frame').attr("scrolling", "no");
});
$("iframe").each(
function(index, elem) {
elem.setAttribute("scrolling","no");
}
);
我可以推荐这个解决方案,对我有用(与上面那个不起作用相比)。您还可以添加更多属性,在这种情况下只需添加一个新行,例如
elem.setAttribute("height","1159");
如何在 iframe podio-webform-frame 中设置 scrolling = "no"
?
不幸的是,完全符合 HTML5 的 HTML 和 CSS 属性是可能的
Podio Webforms 的 iframe 属性无法预先自定义,但您可以使用 JQuery.
等操作其上的属性查看此 SO 答案以获取更多信息:
来自 Marcelo 代码的示例:
$('.podio-webform-frame').on("load", function() {
$('.podio-webform-frame').attr("scrolling", "no");
});
$("iframe").each(
function(index, elem) {
elem.setAttribute("scrolling","no");
}
);
我可以推荐这个解决方案,对我有用(与上面那个不起作用相比)。您还可以添加更多属性,在这种情况下只需添加一个新行,例如
elem.setAttribute("height","1159");