0

使用嵌入式模板设置快速表单,但我想使表单居中并且不能。

<a name="form789985197" id="formAnchor789985197"></a>
<script type="text/javascript" src="http://fs8.formsite.com/include/form/embedManager.js?789985197"></script>
<script type="text/javascript">
EmbedManager.embed({
    key: "http://fs8.formsite.com/res/showFormEmbed?EParam=bJeI6E3QIKDSIfZNMjkSkRGOwQgdGLHi&789985197",
    width: "70%"
});
</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://fs8.formsite.com/documentation/embedded-form.html
-->

如何使表格居中?

这是密码板链接

4

1 回答 1

0

我从未使用过 Embedded Form,但我阅读了文档并设置了这个 jsFiddle http://jsfiddle.net/roimergarcia/NxzCH/。看起来a标签只是一个标记,并且iframe在它之前插入了一个。解决方案是在 div 中扭曲a标签,并设置text-align:center为该 div:

<div id="formContainer" style='text-align: center;'>
    <a name="form789985197" id="formAnchor789985197"></a>
</div>
<script type="text/javascript" src="http://fs8.formsite.com/include/form/embedManager.js?789985197"></script>
<script type="text/javascript">
EmbedManager.embed({
    key: "http://fs8.formsite.com/res/showFormEmbed?EParam=bJeI6E3QIKDSIfZNMjkSkRGOwQgdGLHi&789985197",
    width: "70%"
});
</script>
于 2012-12-25T04:13:46.577 回答