Forms 如何用css将表单嵌入html文档

Forms 如何用css将表单嵌入html文档,forms,embed,Forms,Embed,我试图在html中输入一个表单,当我查看页面时,我看不到整个表单,只看到表单的开头。下面是我的html和表单脚本的代码 <section id="content"> <div class="container_12"> <article class="a3"> <h4>Careers</h4> <p class="p2"

我试图在html中输入一个表单,当我查看页面时,我看不到整个表单,只看到表单的开头。下面是我的html和表单脚本的代码

<section id="content">
        <div class="container_12">
            <article class="a3">
                <h4>Careers</h4>
                    <p class="p2">

                           <a name="form1160016477" id="formAnchor1160016477"></a>
<script type="text/javascript" src="http://fs23.formsite.com/include/form/embedManager.js?1160016477"></script>
<script type="text/javascript">
EmbedManager.embed({
    key: "http://fs23.formsite.com/res/showFormEmbed?EParam=m%2FOmK8apOTB8lIDHQTyQ62rYe2Y6sJfY&1160016477",
    width: "100%"

});
</script>
<!-- Notes: 
To control the width of the form, change width: "100%" to any number or percentage.
To pre-populate fields in the form or to use a custom resize callback, see http://fs23.formsite.com/documentation/embedded-form.html
-->

以下是网站:

问题是iframe的高度,需要添加高度:800px;添加到html中的iframe样式。目前,它被设置为默认值,该值太小,因此iframe窗口不会显示所有内容

由于iframe是使用JavaScript动态生成的,因此应该可以像传递width一样传递高度参数,如果是这种情况,那么这将修复它:

EmbedManager.embed({
     key: "http://fs23.formsite.com/res/showFormEmbed?    EParam=m%2FOmK8apOTB8lIDHQTyQ62rYe2Y6sJfY&1160016477",
    width: "100%",
    height: "800px"
});

如果te 800px不能解决这个问题,你可以尝试100%的高度,但一般来说,高度和百分比不能很好地混合。

我最近不得不实现这一点,表单现在支持resizeCallback,因此你可以通过javascript设置高度


你是说要添加到我的css文件还是html文件?谢谢。我两个都试过了,但仍然不起作用。很抱歉,我说的太多了。