gpt4 book ai didi

html - 有没有人使用过集成到 Twitter Bootstrap 中的 Pardot 表单?

转载 作者:太空宇宙 更新时间:2023-11-03 17:52:42 25 4
gpt4 key购买 nike

我试着点击下面的链接。

http://www.pardot.com/faqs/html-css/optimizing-forms-on-mobile-devices/

它说我可以在布局模板下使用来 self 的 Twitter Boostrap CSS/LESS 样式表的相同 CSS3 媒体查询到 Pardot 的表单样式表。

但是当我试图在布局模板中编写这个媒体查询时。

@media (max-width: 480px) {
// some CSS code here from Boostrap
}

然后在我的浏览器上查看它。这是行不通的!

由于 Pardot 的内部 iframe 设置,当浏览器在移动设备上重新缩放时,它就好像无法检测到我的 Bootstrap CSS3 样式表。

有人可以指出移动响应可以通过这种集成来完成吗?

最佳答案

您需要在 Pardot 表单布局模板中包含指向您的 Bootstrap 样式表的链接。

添加https://github.com/davidjbradshaw/iframe-resizer让您的 iframe 响应并自动调整垂直大小,这在您遇到表单错误或表单高度增加或缩小以用于确认或条件字段时非常有用。

    <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="description" content="%%description%%"/>
<title>%%title%%</title>

<link rel="stylesheet" href="https://yourdomain.com/media/styles/bootstrap.min.css">

</head>
<body>
%%content%%

<!-- Use iframe resizer to allow this form to resize itself in the parent page -->
<script src="https://yourdomain.com/media/scripts/iframeResizer.contentWindow.min.js"></script>
</body>
</html>

关于html - 有没有人使用过集成到 Twitter Bootstrap 中的 Pardot 表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26987136/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com